multidimensional dynamic arrays

Ellery Newcomer ellery-newcomer at utulsa.edu
Mon Nov 16 05:59:57 PST 2009


Trass3r wrote:
> 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.
> 

I think it has something to do with uniformity inside templates or
something.

alias ubyte[][] Foo;

Foo foo = new Foo(1,2);

still not sure about params.. I should look this up..


More information about the Digitalmars-d-learn mailing list