Setting array length to 0 discards reserved allocation?

Andrew Godfrey via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 02:52:14 PDT 2014


> What about T[] is _not_ a dynamic array?

Now that I've done this exercise I can answer more crisply:
When T[] is an lvalue, it behaves like a reference, not a dynamic 
array.


More information about the Digitalmars-d mailing list