Re: [Vala] private fields vs bodyless properties
- From: Hans Vercammen <hveso3 gmail com>
- To: Yu Feng <rainwoodman gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] private fields vs bodyless properties
- Date: Sat, 31 May 2008 02:38:18 +0200
Hi Yu,
MyObject * my_object_new(int my_value){
MyObject * myobject = g_object_new(TYPE_MY_OBJECT, NULL);
MyObjectPrivate * priv = MY_OBJECT_GET_PRIVATE(myobject);
priv->my_value = my_value;
}
Yes, this was exactly what started me thinking. But indeed this doesn't
add up in the end.
Hans
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]