[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Vala] default-property-value syntax



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]