Privacy violation depending on who passes a compile-time argument?

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 14 10:48:14 PDT 2016


On Sunday, 14 August 2016 at 17:23:06 UTC, Basile B. wrote:
> On Sunday, 14 August 2016 at 16:34:48 UTC, rcorre wrote:
>> On Sunday, 14 August 2016 at 15:47:16 UTC, Basile B. wrote:
>> getMember_i is just an alias to that, so shouldn't it also be 
>> private?
>
> It is private: https://dpaste.dzfl.pl/83fcca84dde3, so the code 
> you've posted in the first message could be a bug.
>
> The deprecation message also since this case has nothing to do 
> with the transition period due to fix 314 (because your import 
> is not selective).

One thing that will make things worth in the near future:

Identity has the "package" protection on phobos master...
https://github.com/dlang/phobos/blob/master/std/traits.d#L3224
previously it was public (it's still in the latest public beta, 
which i use).


More information about the Digitalmars-d-learn mailing list