allocate an array of AA?

sa no at where.com
Sat Mar 8 11:52:51 PST 2008


How to allocate an array of AA?

I tried two ways (new, and setting array length), in both cases the code
compiles, but the executable seems run into infinite loop, and never finish.

void allocAA() {
  int[int][] maps;
  maps = new int[int][3];
  maps.length = 3;
}

int main() {
  allocAA();

  return 0;
}




More information about the Digitalmars-d mailing list