array of constants?

Etherous etherous at gmail.com
Thu Jun 2 09:22:09 PDT 2011


You need to set it in a static constructor
immutable string[int] MyDict;

static this ()
{
  MyDict = cast(string[int]) [
  1: "monday",
  2: "tuesday"
  ];
}


More information about the Digitalmars-d-learn mailing list