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

Reply via email to