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

Reply via email to