Non-Initialized Dynamic Arrays Construction
"Nordlöw"
per.nordlow at gmail.com
Mon Feb 24 04:08:30 PST 2014
On Monday, 24 February 2014 at 11:29:39 UTC, bearophile wrote:
> TheFlyingFiddle:
>
>> http://dlang.org/phobos/std_array.html#.uninitializedArray is
>> what you want.
Wouldn't it be nice to have some kind of syntactic sugar for this
similar to what we have for static arrays?
BTW: Why isn't simply the following allowed?
int n = 3;
int[n] = void;
Is it too easy to confuse with static array syntax?
More information about the Digitalmars-d-learn
mailing list