Usability of "allMembers and derivedMembers traits now only return visible symbols"
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 3 12:27:00 PDT 2016
On 2016-09-03 17:50, Martin Nowak wrote:
> 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.
Without looking at the how the rest of the code works, it already checks
if a member is public or not [1]. Or are you saying that
"isPublicMember" would return a different value?
[1]
https://github.com/rejectedsoftware/vibe.d/blob/c1180791de61d0f8c9bfb584c2551a5b64627e32/source/vibe/internal/meta/traits.d#L159
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list