in not working with enum'd AA

Nathan M. Swan nathanmswan at gmail.com
Mon Feb 27 00:34:49 PST 2012


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?



More information about the Digitalmars-d mailing list