in not working with enum'd AA
Daniel Murphy
yebblies at nospamgmail.com
Mon Feb 27 01:53:43 PST 2012
"Nathan M. Swan" <nathanmswan at gmail.com> wrote in message
news:jubnbnovcksfyagtamzn at 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?
More information about the Digitalmars-d
mailing list