Re: [Vala] private fields vs bodyless properties



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]