Problem with multi-dimensional associative arrays?

Brian Palmer d at brian.codekitchen.net
Thu Apr 26 10:37:26 PDT 2007


This code works with DMD 1.010 for Windows, but fails with an ArrayBoundsError on gdc 0.23, using dmd 1.007

void main() {
  int stuff[char[]][char[]];
  stuff["brian"]["pocket"] = 3;
}

It appears that GDC doesn't know how to handle multi-dimensional AAs.

(My environment: i686-apple-darwin8-gdc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363) (gdc 0.23, using dmd 1.007), I'm using a pre-compiled binary of GDC downloaded from http://sourceforge.net/projects/gdcmac)


More information about the D.gnu mailing list