associative array definition

llee llee at goucher.edu
Fri Jul 11 13:51:29 PDT 2008


Is it possible to define associative arrays using a format similar to that used to define other types of arrays? For example I can define an integer array using: 
     int[] array = [1, 2, 3];
I can define an associative array using:
     string [string] array;
     array ["key"] = "value;
But I would like to use a static declaration like the one above. 



More information about the Digitalmars-d mailing list