Aliases

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Mar 4 02:56:13 PST 2016


if m is a string obtained from __traits(allMembers,...)
I can detect if a symbol is an alias by m != 
__traits(getMember,...,m).stringof .it follows that I can use 
another (m2; __traits(allMembers,...)) loop to check is 
(__traits(getMember,m2) ==__traits(getMember,...,m)) && m != 
__traits(getMember,...,m).stringof I can find aliases of m. is 
there any way to do this without massively increasing compile 
time?


More information about the Digitalmars-d-learn mailing list