new array without auto-initialization

Matej Nanut matejnanut at gmail.com
Thu Sep 26 15:21:57 PDT 2013


On Thursday, 26 September 2013 at 22:14:27 UTC, Joseph Rushton 
Wakeling wrote:
> It's what I was thinking of, but does that also work with a 
> dynamic array declaration?
>
>     int[] arr = new int[n];

Check out std.array.uninitializedArray.

Matej


More information about the Digitalmars-d-learn mailing list