Multidimensional array in d2?
Ali Çehreli
acehreli at yahoo.com
Thu Nov 14 13:24:24 PST 2013
On 11/14/2013 01:18 PM, seany wrote:
> I See that in stack exchange, that it is possible to create
> multidimensional arrays like :
>
> <type> [][] arrayname ;
That works because in C, C++, D, etc. a multi-dimensional array is
nothing but a single dimensional array where elements are arrays.
> I would like to know more about it, and learn about multidimensional
> arrays in D2, dont find much in official sites.
I have a short "Multi-dimensional arrays" section here:
http://ddili.org/ders/d.en/slices.html
That has a passing reference to the following new expression as well:
int[][] s = new int[][](2, 3);
Ali
More information about the Digitalmars-d-learn
mailing list