multidimensional dynamic arrays

Trass3r mrmocool at gmx.de
Mon Nov 16 05:59:15 PST 2009


Steven Schveighoffer schrieb:
> 
> Especially now that static arrays are legitimate value types, new 
> ubyte[1][2] looks to the compiler like a dynamic array of 1 ubyte[1]'s.
> 

Ah ok.
Maybe it's a good idea to alter the error message when the compiler 
detects a non-constant expression? Like if you meant to create a dynamic 
array use the []() syntax..


More information about the Digitalmars-d-learn mailing list