allocating an array in an associative array

Dominic Jones dominic.jones at qmul.ac.uk
Wed Feb 9 04:58:12 PST 2011


Hello,
I want to allocate the "int[]" array for a particular key in

  int[][string] list;

by doing

  list[key].length = list[key].length + 1;

but it does not work. I get an array bounds error. I am using gdc 4.3.5. Any
suggestions?

Thank you,
Dominic Jones


More information about the Digitalmars-d-learn mailing list