range violation

Dr.Smith not at 4now.com
Mon Feb 28 13:11:24 PST 2011


For example:

double [string] data;
double [200][1000] data2;

for(int i = 0; i < 200; i++) {
    for(int j = 0; j < 1000; j++) {

      // fake multi-dim works
      string str = to!string(i) ~ "," ~ to!string(j);
      data[str] = someNumber;

      // real multi-dim does not work
      data2[i][j] = someNumber;
    }
}


More information about the Digitalmars-d-learn mailing list