Dynamic multi-dimensional arrays

Hoenir mrmocool at gmx.de
Wed Jan 14 11:32:48 PST 2009


Having a small "problem" here:
(Tile is a struct)

Tile[][] tiles = new Tile[85][85];

gives me
Error: cannot implicitly convert expression (new 
Tile[85u][](cast(uint)85)) of type Tile[85u][] to Tile[][]

I'm trying to understand why that error occurs.


More information about the Digitalmars-d-learn mailing list