https://issues.dlang.org/show_bug.cgi?id=8280

--- Comment #3 from [email protected] ---
(In reply to bearophile_hugs from comment #1)

> auto data = initializedArray!(char[])(100, ' ');
> 
> It is equivalent to:
> 
> auto data = uninitializedArray!(char[])(100);
> data[] = ' ';
> 
> 
> Another example usage (note the result is immutable):
> 
> immutable data = initializedArray!(int[])(50, i => i);

Perhaps there is one case where there is some ambiguity:

auto funcs = initializedArray!(int function(int)[])(10, i => i);

--

Reply via email to