[Issue 6211] __traits (compile) return wrong result when the bug happen
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 24 20:29:27 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6211
--- Comment #3 from Lloyd Dupont <ld at galador.net> 2011-06-24 20:24:36 PDT ---
Not understanding the explanation I can't claim it wrong...
Nonetheless the work around I found seems to indicate to me that the
explanation was, at the very least (for what I understand) completely
irrelevant.
I replaced:
writeln(mixin( "__traits(compiles, t." ~memberName ~" =
("~typeof(__traits(getMember, T, memberName)).stringof ~").init)" ));
With:
writeln(mixin( "__traits(compiles, t." ~memberName ~" = (typeof(t."~memberName
~")).init)" ));
And it worked. Still using library and exe.
--
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