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 structure :

[in header file]
struct _Sample {
        GObject parent_instance;
        SamplePrivate * priv;
};

But I don't found SamplePrivate definition... I re-check tomorow.

2008/1/21, Hans Vercammen <[EMAIL PROTECTED]>:
> Just realized you probably ment the o->free () in relation to pointers
>
> Object* o = new Object();
> o->free ();
>

Yes, like C++ syntax :

Object* o = new Object();
delete o;

Thanks for your rapid answer ;)

-- 
Nicolas Joseph

Responsable de la rubrique GTK+ de developpez.com

http://nicolasj.developpez.com
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to