private keyword dont appear to do anything
rikki cattermole
rikki at cattermole.co.nz
Fri Nov 3 12:43:15 UTC 2017
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
More information about the Digitalmars-d-learn
mailing list