Re: [Vala] private fields vs bodyless properties
- From: Hans Vercammen <hveso3 gmail com>
- To: "Jaap A. Haitsma" <jaap haitsma org>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] private fields vs bodyless properties
- Date: Sat, 31 May 2008 02:36:08 +0200
Hi Jaap,
The reason for this is that the objects are gobjects and these are
created by a g_object_new call [1]. That function can only set
properties. So you need to have a property if you want to pass data to
your constructor
Thanks, yes you are absolutely right, I was not thinking outside the
vala box.
I have noticed that non-construct properties don't go through the
g_object_new argument list. Which caused some confusion; is this some
sort of optimization?
Hans
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]