Re: [Vala] Class finalizer



On 03/08/2012 12:30 PM, Luca Bruno wrote:
On Thu, Mar 8, 2012 at 7:03 AM, Derek Dai <daiderek 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, valac
wrote an error:
error: static destructors are only supported for dynamic types

What is 'dynamic types' ?
And how I'm supposed to use this code ?

Thanks.



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