Re: [Vala] Chaining up constructors.
- From: Jürg Billeter <j bitron ch>
- To: Yu Feng <rainwoodman gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Chaining up constructors.
- Date: Sun, 23 Nov 2008 10:03:35 +0100
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 don't think you should mix the two construction schemes to much as
they are essentially incompatible. GObject basically doesn't support
custom constructor chaining interference, so if vala wants to support
this (and by doing so breaking the GObject way a bit), why keep the
property assignment limitation?
Why are they essentially incompatible? As far as I know the construct
blocks corresponds to Klass->constructor, and they are automatically
If you mean chaining up the CreationMethods, I still can't see any
The construct blocks are not incompatible with chaining up
CreationMethods, however, construct properties are. Assignment to a
construct property in a CreationMethod makes chaining up impossible in
the current implementation.
] [Thread Prev