Re: [Vala] Structure initialisation syntax



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

Another way:
Color c = Color ();
c.red = 0.5;

Regards,
Sébastien

Attachment: pgp_haACAnYje.pgp
Description: PGP signature



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