[Issue 2306] Scope for dynamic arrays should free memory.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 10 19:11:40 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2306





------- Comment #2 from dsimcha at yahoo.com  2008-10-10 21:11 -------
I'd disagree that scope dynamic arrays should be stack allocated.  The
int[variableSize] syntax for that is perfectly good, if Walter wants to
implement it.  If you're allocating a very large array, you probably don't want
to allocate it on the stack so you don't overflow the stack.  Furthermore, you
can't resize stack allocated arrays after they're created, at least not in C99.


-- 



More information about the Digitalmars-d-bugs mailing list