digitalmars.D.learn - Aliases
- Nicholas Wilson (8/8) Mar 04 2016 if m is a string obtained from __traits(allMembers,...)
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?
Mar 04 2016