[BUG, with testcase] problem with type system, __traits accross static libraries
Lloyd Dupont
ld-REMOVE at galador.net
Fri Jun 24 19:52:08 PDT 2011
Apparently it's not a bug, it's feature (I can't begin to fathom why)
At any rate, by replacing
writeln(mixin( "__traits(compiles, t." ~memberName ~" = ("
~typeof(__traits(getMember, T, memberName)).stringof ~").init)" ));
with
writeln(mixin( "__traits(compiles, t." ~memberName ~" = (typeof(t."
~memberName ~")).init)" ));
it works as expected!
More information about the Digitalmars-d
mailing list