Re: [Vala] Chaining up constructors.

2008-11-24 Thread Arto Karppinen
Yu Feng wrote: CreateMethod in GObject is really awkward and difficult to get accustomed. On the other hand, i think that GObject construction is quite handy in the way you can set multiple properties of the object at once. Especially in C, though, perhapse, not so much elsewhere. The

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 10:41 +0100, Hans Vercammen wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and trunk fails to smoothly switching the parent classes. if I have extra stuff in the creation methods.

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and trunk fails to smoothly switching the parent classes. if I have extra stuff in the creation methods. Do you have an example or bugzilla link? I was experiencing

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 09:40 +0100, Hans Vercammen wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Hi Hans, Thanks for the reply. To avoid confusion, can we use CreationMethod and construct block to refer the entities? sure, no problem. For class types I will use

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 04:53 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 04:53 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun,

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 14:01 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: You should use private set here instead of construct with the new

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 20:24 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 14:01 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: You should use

[Vala] Chaining up constructors.

2008-11-21 Thread Yu Feng
Dear Jurg and others, I have an idea about chaining up constructors to share with you. Situation We have 2 different constructors, the construction block(CB), and the construct function(CF). for GType based classes, CB doesn't work, chaining up CF works. for GObject based classes, CB