multidimensional dynamic arrays
Trass3r
mrmocool at gmx.de
Mon Nov 16 05:42:28 PST 2009
Ellery Newcomer schrieb:
>
> auto array = new ubyte[][](width*height, numSprites);
>
> params might be backwards..
Ah yeah, thanks, that was it.
Don't get the reason for that syntax.
Anyway it should really be described in the language docs.
I'd expect it to be at http://www.digitalmars.com/d/2.0/arrays.html
but "Rectangular Arrays" only explains how to declare them.
More information about the Digitalmars-d-learn
mailing list