Allocating large 2D array in D

Sparsh Mittal sparsh0mittal at gmail.com
Mon Feb 4 07:23:19 PST 2013


I am allocating 2d array as:

double[gridSize][gridSize] gridInfo;

which works for small dimension, but for large dimension, 16Mb 
limit comes.

Would you please tell me how do allocate a large 2d array (which 
has to be done as a dynamic array)? It is a square grid and 
dimensions are already known.

I also searched internet but could not find an answer. Thanks.


More information about the Digitalmars-d-learn mailing list