Ref local variables?

Trass3r un at known.com
Sun Jan 8 10:03:22 PST 2012


> MapTile[] map;	// It's a struct
>
> ref MapTile tile=map[y*w+x];
> tile.id=something;
> tile.isWall=true;

MapTile* tile = &map[y*w+x];


More information about the Digitalmars-d-learn mailing list