Re: [Vala] Structure initialisation syntax



On 26/04/11 23:02, Sébastien Wilmet wrote:
[...]
Color c = Color ();
c.red = 0.5;

Sorry, it's late and I forgot a magic key phrase: I'm actually looking
for a designated initialiser, where I get to specify individual field
names and values inside the initialiser block.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "I have a mind like a steel trap. It's rusty and full of dead mice."
│ --- Anonymous, on rasfc

Attachment: signature.asc
Description: OpenPGP digital signature



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