is __traits(allMembers) usable in a non-deprecated way?
E.S. Quinn via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 6 22:41:06 PDT 2016
__traits(allMembers, <symbol>) has always been pretty much
essential to any non-trivial struct, class, or module-based
introspection, but given the visibility rules changes in 2.071.0,
it looks like it's not even allowed to check whether a given
symbol is public. (i.e. with __traits(getProtection, Type,
member))
Is there a new, approved way of doing this?
More information about the Digitalmars-d
mailing list