Multidimensional array

bearophile bearophileHUGS at lycos.com
Fri Jul 5 02:07:43 PDT 2013


Ali Çehreli:

>     int[3][2] arr = 10;
>
> I would expect that to be an error because the element type is 
> not an int but int[3]. We know that an int[3] can be 
> initialized by 10 but a 10 should not be allowed to be used as 
> an int[3].
>
> That was my point.

I see. That's another feature :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list