DMD 0.167 release
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Sep 18 13:23:03 PDT 2006
"Walter Bright" <newshound at digitalmars.com> wrote in message
news:eemulj$1ogm$1 at digitaldaemon.com...
> Frits van Bommel wrote:
> It's allocated on the heap.
To expand upon this, something like
fork([1, 2, 3]);
is turned into something like
fork(_d_arrayliteral(1, 2, 3));
That is, it's a function call. _d_arrayliteral creates a new array on the
heap and copies its variadic arguments into it.
More information about the Digitalmars-d-announce
mailing list