How to use an associative array with array values.

tipdbmp email at example.com
Wed Mar 21 15:53:32 UTC 2018


  // foo is an associative array/hashtable with
  // key type: string
  // value type: int[10]
  //
int[10][string] foo;

// foo["a"] = new int[10]; // Range violation at runtime

// foo["a"][0] = 1; // Range violation at runtime



More information about the Digitalmars-d-learn mailing list