array construction without heap alloc

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Dec 22 17:46:19 PST 2007


"Derek Parnell" <derek at psych.ward> wrote in message 
news:79knrjyy3vnp$.1vie66jlel0bb.dlg at 40tude.net...

>    scope int[2]f = [a,b];

It's syntactically legal, but it won't delete the array at the end of the 
scope.  Dumb, I know. 




More information about the Digitalmars-d-learn mailing list