Usability of "allMembers and derivedMembers traits now only return visible symbols"
Martin Nowak via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 3 08:50:43 PDT 2016
On Wednesday, 31 August 2016 at 13:12:30 UTC, Adam D. Ruppe wrote:
> Ugh, it really should just give everything and have getMember
> bypass it. That won't even break any code!
It will, e.g. having getMember bypass protection means vibe.d
would now serialize private members
https://github.com/rejectedsoftware/vibe.d/blob/c1180791de61d0f8c9bfb584c2551a5b64627e32/source/vibe/internal/meta/traits.d#L146.
Until now getMember was just a DotIdExp (i.e.
`T.indent`/`var.ident`), so it was used to test whether sth. can
be accessed.
More information about the Digitalmars-d
mailing list