[Issue 6917] with() at global scope too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 9 05:12:56 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6917
--- Comment #1 from bearophile_hugs at eml.cc 2011-11-09 05:12:18 PST ---
This is a workaround, but I try to avoid static this where possible to avoid
circular reference import troubles:
enum MyEnum { first, second }
immutable MyEnum[] array;
static this() {
with (MyEnum)
array = [first,second,second,first,second,second];
}
void main() {}
--
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