Access visibility and linkage

Arun Chandrasekaran aruncxy at gmail.com
Thu Feb 15 08:28:55 UTC 2018


On Thursday, 15 February 2018 at 06:52:15 UTC, Seb wrote:
> On Thursday, 15 February 2018 at 06:43:52 UTC, Arun 
> Chandrasekaran wrote:
>> I was reading through 
>> https://wiki.dlang.org/Access_specifiers_and_visibility#What_is_missing
>>
>>> [...]
>>
>> DMD v2.077.1 exhibits the same behavior. Is this is already 
>> being worked on? Or is there any plan to address this? Can 
>> this be fixed? If so how? If not, why not?
>
> AFAICT it's a feature as the article correctly explains this 
> doesn't work well with serialization:
>
>> Compile-time reflection, i.e. serialization libraries or 
>> @attribute scanners. Limiting access for __traits may forbid 
>> certain currently working idioms.
> Use Voldemort types if you want to truly encapsulate something.

ah, not to that extent though.. just need all my variables and 
functions to be private at the module level.

> Simply use `private:` if you think otherwise.

Thanks! Turtles all the way "up" this time :)



More information about the Digitalmars-d-learn mailing list