On 03/10/2012 12:08 AM, Luca Bruno wrote:
On Fri, Mar 9, 2012 at 11:24 PM, Jacques-Pascal Deplaix
jp.depl...@gmail.com mailto:jp.depl...@gmail.com wrote:
It compile but the destructor is never called.
When is it supposed to be called ?
I've sent an email some days ago in this
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
On Fri, Mar 9, 2012 at 11:24 PM, Jacques-Pascal Deplaix
jp.depl...@gmail.com wrote:
It compile but the destructor is never called.
When is it supposed to be called ?
I've sent an email some days ago in this thread about that.
--
www.debian.org - The Universal Operating System
On 03/08/2012 12:30 PM, Luca Bruno wrote:
On Thu, Mar 8, 2012 at 7:03 AM, Derek Dai daide...@gmail.com wrote:
Hi,
In Vala, if I allocate resource in static construct block, where can I free
it? Thanks.
static ~Foo () { }
Hi,
I'm very interested about that. But when I tried that solution,
Static/class destructors are pointless in applications, as the memory will
be freed on exit. Dynamic types are those loaded and unloaded with plugins,
it works with [ModuleInit]. That's where it makes sense.
--
www.debian.org - The Universal Operating System
2012 22:46:05 +0100
From: Jacques-Pascal Deplaix jp.depl...@gmail.com
To: Luca Bruno lethalma...@gmail.com
Cc: vala-list vala-list@gnome.org
Subject: Re: [Vala] Class finalizer
Message-ID: 4f59289d.8050...@gmail.com
Content-Type: text/plain; charset=ISO-8859-1
On 03/08/2012 12:30 PM, Luca