Am Mittwoch, den 27.04.2011, 00:02 +0200 schrieb Sébastien Wilmet:
> On Tue, Apr 26, 2011 at 10:46:00PM +0100, David Given wrote:
> > What's the syntax to initialise an instance of a structure on the stack?
> 
> See the tutorial:
> https://live.gnome.org/Vala/Tutorial#Structs
> 

Copy-n-pasting another way from the the tutorial to initialize a struct
type:

Color c3 = Color() {
    red = 0.5,
    green = 0.5,
    blue = 1.0
};

Does this help?

- fabian

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to