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,

Pascal has "strict private". I like it because you can enforce the usage of setters and getters within the same module.

http://wiki.freepascal.org/User_Changes_3.0#.22strict_protected.22_visibility_modifier

To have strict privacy in D we have to isolate the "strict" thing in a file.

Reply via email to