typeof.stringof wrong type

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 19 12:01:13 PDT 2016


On Friday, 19 August 2016 at 18:52:02 UTC, Jonathan M Davis wrote:
> Unfortunately, once you start doing stuff with things like 
> __traits(allMembers, ...), you're dealing with strings

You should immediately go back into symbol land by passing that 
string into __traits(getMember).

I agree that stringof is almost always a bug, if not ALWAYS a 
bug, when seen in code generator. There's better ways.


More information about the Digitalmars-d-learn mailing list