Dynamic multi-dimensional arrays
    Hoenir 
    mrmocool at gmx.de
       
    Wed Jan 14 13:50:28 PST 2009
    
    
  
Steve Schveighoffer schrieb:
> D interprets a new expression with an array index as:
> 
> new T[x]
> 
> means create a new dynamic array of type T with x elements.  Your T is 
> interpreted as:
> 
> Tile[85], i.e. a static array.
> 
> it's not well known, but you can do this for what you want:
> 
> Tile[][] tiles = new Tile[][](85, 85);
> 
Thanks, that works :)
    
    
More information about the Digitalmars-d-learn
mailing list