"Nathan M. Swan" <nathanms...@gmail.com> wrote in message news:jubnbnovcksfyagta...@forum.dlang.org... >I don't think this should happen: > > private enum KeywordsToTypes = [ > "import"d : TT.KwIMPORT, > "public"d : TT.KwPUBLIC, > "protected"d : TT.KwPROTECTED, > "private"d : TT.KwPRIVATE, > "static"d : TT.KwSTATIC, > ]; > > static this() { > // writes "0" > std.stdio.writeln("import"d in KeywordsToTypes); > } > > Is there a reason why, or is this a bug? >
I think there's a bug with dstring lookup in AAs, but there are plenty of other AA bugs too. Have you tried with char strings?