private keyword dont appear to do anything

LunaticWare exemple at gmail.com
Fri Nov 3 12:49:09 UTC 2017


On Friday, 3 November 2017 at 12:43:15 UTC, rikki cattermole 
wrote:
> Visibility modifiers like private, and public are to the module 
> not the scope.
>
> "Symbols with private visibility can only be accessed from 
> within the same module."
>
> This is how module based languages work, a bit more useful then 
> to the scope approach IMO. An easy mistake to make.
>
> https://dlang.org/spec/attribute.html#visibility_attributes

thank you


More information about the Digitalmars-d-learn mailing list