Dynamic array initialisers

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Apr 18 06:26:57 PDT 2008


"Chris R. Miller" <lordSaurontheGreat at gmail.com> wrote in message 
news:fu8hsc$71p$1 at digitalmars.com...

> auto numbers3 = [ 1, 2, 3, 4], [];

Sorry, that's entirely wrong.  First, he wants an int[].  Second, this is 
just using the comma operator.  It would assign [] into numbers3 (if it 
compiled, which I don't know). 




More information about the Digitalmars-d-learn mailing list