http://d.puremagic.com/issues/show_bug.cgi?id=6318



--- Comment #1 from Trass3r <mrmoc...@gmx.de> 2011-07-14 16:09:47 PDT ---
Well, if ever needed, here's basic.utils:

//! bring named enum members into current scope
string flattenNamedEnum(EnumType)()
if (is (EnumType == enum))
{
    string s = "";
    foreach (i, e; __traits(allMembers, EnumType))
    {
        s ~= "alias " ~ EnumType.stringof ~ "." ~ __traits(allMembers,
EnumType)[i] ~ " " ~ __traits(allMembers, EnumType)[i] ~ ";\n";
    }

    return s;
}


Pulling enum Level out of Bar also seems to 'resolve' this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to