Re: [Vala] default-property-value syntax
- From: "Juerg Billeter" <j bitron ch>
- To: "Florian Brosch" <flo brosch gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] default-property-value syntax
- Date: Wed, 2 Apr 2008 12:21:17 +0200 (CEST)
On Thu, March 6, 2008 00:36, Florian Brosch wrote:
A new feature of valac 0.1.8 is a way to set the default-value of a
property:
public int rank {
construct set;
private get;
default ( 5 );
}
We talked about the syntax in #vala. Chipzz and I think that following
looks more appealing:
public int rank {
construct set;
private get;
default = 5;
}
I agree and we'll introduce the new syntax in Vala 0.2.0. The old syntax
will be deprecated but continue to work for the time being.
Juerg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]