Re: [Vala] Some implementation questions

2008-01-30 Thread Jürg Billeter
On Mon, 2008-01-21 at 17:00 +0100, Hans Vercammen wrote: > Just realized you probably ment the o->free () in relation to pointers > > Object* o = new Object(); > o->free (); > > I don't know why keyword delete isn't used, maybe this can be supported > in future? We're planning to add support for

Re: [Vala] Some implementation questions

2008-01-22 Thread gege2061
2008/1/21, Hans Vercammen <[EMAIL PROTECTED]>: > > My first test (http://live.gnome.org/Vala/BasicSample) declare private > > structure in public classe structure : > > > > [in header file] > > struct _Sample { > > GObject parent_instance; > > SamplePrivate * priv; > > }; > > > > But I

Re: [Vala] Some implementation questions

2008-01-21 Thread Hans Vercammen
> My first test (http://live.gnome.org/Vala/BasicSample) declare private > structure in public classe structure : > > [in header file] > struct _Sample { > GObject parent_instance; > SamplePrivate * priv; > }; > > But I don't found SamplePrivate definition... I re-check tomorow. > Y

Re: [Vala] Some implementation questions

2008-01-21 Thread gege2061
2008/1/21, Hans Vercammen <[EMAIL PROTECTED]>: > > > - Why do not use g_type_class_add_private for class private members ? > > This should normally be the case when you derive from GLib.Object My first test (http://live.gnome.org/Vala/BasicSample) declare private structure in public classe structu

Re: [Vala] Some implementation questions

2008-01-21 Thread Ali Sabil
On Jan 21, 2008 5:00 PM, Hans Vercammen <[EMAIL PROTECTED]> wrote: > Just realized you probably ment the o->free () in relation to pointers > > Object* o = new Object(); > o->free (); > > I don't know why keyword delete isn't used, maybe this can be supported > in future? > Maybe because delete is

Re: [Vala] Some implementation questions

2008-01-21 Thread Hans Vercammen
Just realized you probably ment the o->free () in relation to pointers Object* o = new Object(); o->free (); I don't know why keyword delete isn't used, maybe this can be supported in future? Hans ___ Vala-list mailing list Vala-list@gnome.org http:

Re: [Vala] Some implementation questions

2008-01-21 Thread Hans Vercammen
Hi, > - Why Glib.Object inheritace is not implicit ? Quoted Jürg: While most classes (should) derive from GObject, it's not always the case. For one there are many libraries that don't use GObject at all or don't use GObject for all class types and we want to be able to use such libraries from Va

[Vala] Some implementation questions

2008-01-21 Thread gege2061
Hello, I discover Vala language with 0.1.6 release announcement and congratulate for your work ! However, I have some questions about this language : - Why Glib.Object inheritace is not implicit ? - Why do not use g_type_class_add_private for class private members ? - For free memory object, use