March 04, 2016 Aliases | ||||
---|---|---|---|---|
| ||||
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? |
Copyright © 1999-2021 by the D Language Foundation