multidimensional dynamic arrays

Trass3r mrmocool at gmx.de
Sun Nov 15 18:06:46 PST 2009


What's the short way to create a multidimensional dynamic array? I 
always forget how to do such stuff due to its strange syntax.

auto array = new ubyte[width*height][numSprites];
doesn't work cause width*height is no "Integer constant expression"


More information about the Digitalmars-d-learn mailing list