Associative Array Initializers

Joseph Bell josephabell at tx.rr.com
Sun Jan 21 15:36:36 PST 2007


Another question regarding arrays, this time associative arrays.

int[char[]] months = ["Jan" : 1, "Feb" : 2,

etc. definitely doesn't work as intended, that is supplying a 
initializing set of keys and values.

Does D currently support an initialization syntax for associative arrays?

Thanks,
Joe



More information about the Digitalmars-d mailing list