Initialization of dynamic multidimensional array

berni via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 7 11:06:22 PST 2017


> auto arr = uninitializedArray!(int[][])(ROWS,COLS);
> arr.each!"a[]=-1";

This looks like what I was looking for. At least I think I 
understand what's going on here. The other two suggestions are 
beyond my scope yet, but I'll come back, when I improved on my D 
skills. Thanks for your replies.



More information about the Digitalmars-d-learn mailing list