Re: [Vala] [ANNOUNCE] Vala 0.4.0 - Compiler for the GObject type system
- From: Frederik <scumm_fredo gmx net>
- To: vala-list gnome org
- Subject: Re: [Vala] [ANNOUNCE] Vala 0.4.0 - Compiler for the GObject type system
- Date: Tue, 21 Oct 2008 13:19:21 +0200
Jürg Billeter wrote:
The restriction to property assignment statements has been lifted, which
means that you can have any kind of statements in the constructors /
creation methods. However, you should be careful not to mix the two
construction schemes too much. If you want to use the new mechanism,
don't use any construct properties.
Thanks for the examples. Is the old scheme still necessary except for
backward compatibility? Are there any drawbacks to the new scheme /
benefits of the old scheme?
You can also call named constructors `base.with_foo ()' and constructors
of the same class `this ()' or `this.with_foo ()'.
The latter one (named construction method) could get confused with an
instance method invocation. But I can't think of any better way, so I'm
ok with that.
Regards,
Frederik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]