Usability of "allMembers and derivedMembers traits now only return visible symbols"

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 7 15:57:42 PDT 2016


On Wednesday, 7 September 2016 at 15:08:17 UTC, Johan Engelen 
wrote:
> Note that the spec tells us:
> "The .tupleof property returns an ExpressionTuple of all the 
> fields in the class, __excluding__ the hidden fields and __the 
> fields in the base class__." (emphasis mine)
> So then you have to do __traits(parent, ) recursively...?

or use std.traits.BaseClassesTuple.


More information about the Digitalmars-d mailing list