Re: [Vala] Class finalizer



On 03/09/2012 07:09 AM, Derek Dai wrote:
I tried the syntax too. The same issue.

But it's OK with class construct/destruct.
class MyClass : Object
{
static string message = null;

class construct
{
message = "Bla";
 }

class ~MyClass()
{
message = null;
 }
}

Derek Dai
It compile but the destructor is never called.
When is it supposed to be called ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]