[Issue 6318] module isn't fully processed under weird conditions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 14 16:15:02 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6318
--- Comment #1 from Trass3r <mrmocool at 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: -------
More information about the Digitalmars-d-bugs
mailing list