Multidimensional array

monarch_dodra monarchdodra at gmail.com
Fri Jul 5 03:00:11 PDT 2013


On Friday, 5 July 2013 at 01:53:22 UTC, Ali Çehreli wrote:
> Now I have another array where the elements are of type int[3]:
>
>     int[3][2] arr = [ 10, 20, 30 ];
>
> Error: mismatched array lengths, 6 and 3
>
> Ali

Combined with the fact that *this* works:

int[3][2] arr = [ 10, 20, 30, 10, 20, 30 ];

Seems like a bug to me. I'd file it, personally.


More information about the Digitalmars-d-learn mailing list