declaration/initialization of multidimensional arrays
bearophile
bearophileHUGS at lycos.com
Sun Nov 18 17:08:25 PST 2012
> auto b = new double[][3][](M, N);
That doesn't compile, I don't know why. The D array syntax
allocation syntax is a bit of a mess. So to do that you have to
write:
auto b = new double[][3][](N);
Or:
auto b = new double[][3][N];
And then fill the arrays with a loop. Why is no one complaining
about this array allocation syntax?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list