Jonathan M Davis: > At present, I don't believe that associative arrays are valid CTFE You are wrong, the current situation with AAs is not so simple :-) string foo(string k) { string[string] map = ["bar" : "spam"]; return map[k]; } enum string v = foo("bar"); static assert(v == "spam"); void main() {} Bye, bearophile