DMD 0.167 release
Walter Bright
newshound at digitalmars.com
Mon Sep 18 13:11:42 PDT 2006
Frits van Bommel wrote:
> One question about the above: When an array literal is used in the code,
> is the resulting array allocated on the stack?
> I ask because it doesn't mention using dynamic memory allocation, nor
> does it mention the array being unusable after the scope ends...
> (Since it allows AssignExpressions -- not just constants -- it can't
> generally be statically allocated, right?)
It's allocated on the heap.
More information about the Digitalmars-d-announce
mailing list