Re: [Vala] struct assignment





2007/8/29, Jürg Billeter <j bitron ch>:


As discussed on IRC, we'll probably implement

Foo thing = new Foo () { a = 1, b = 2, c = 3 };
 
Cool!

That's the same syntax as C# 3.0 uses for object initializers.

As soon as it's implemented, let me know, I have the clutter bindings test suite kinda stopped since it uses this feature heavily to initialize Color and Knot structs.

Thanks! :-)

Regards,

Jèrg




--
Un saludo,
Alberto Ruiz

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