Assigning to slice of array

Jamie jamieborder01 at gmail.com
Thu Mar 1 22:57:16 UTC 2018


On Thursday, 1 March 2018 at 21:34:41 UTC, Jonathan M Davis wrote:
> Don't put the indices within the brackets. What you want is
>
> auto arr = new int[][][](3, 2, 1);

Okay thanks, but I don't understand what is the issue with having 
static arrays there instead? My functionality didn't change when 
I replaced the single line with your line?

And I couldn't resize either of them with array.length, which is 
also something I would like.
Thanks




More information about the Digitalmars-d-learn mailing list