Re: [Vala] Class finalizer
- From: Jacques-Pascal Deplaix <jp deplaix gmail com>
- To: Derek Dai <daiderek gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Class finalizer
- Date: Fri, 09 Mar 2012 23:24:25 +0100
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]