Allocating large 2D array in D

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Feb 5 10:41:20 PST 2013


On Tue, Feb 05, 2013 at 07:38:40PM +0100, bearophile wrote:
> H. S. Teoh:
> 
> >Added to wiki: http://wiki.dlang.org/Dense_multidimensional_arrays
> 
> It contains:
> 
> enum columns = 100;
> int rows = 100;
> double[gridSize][] gridInfo = new double[columns][](rows);
> 
> 
> gridSize is undefined.
[...]

Oops, that was a typo. Fixed.

P.S. Feel free to edit the page yourself if you see a mistake. That's
what a wiki is for, after all.


T

-- 
"I suspect the best way to deal with procrastination is to put off the procrastination itself until later. I've been meaning to try this, but haven't gotten around to it yet. " -- swr


More information about the Digitalmars-d-learn mailing list