On Thursday, 8 August 2019 at 15:51:45 UTC, Drobet wrote:
I'm having a weird issue, where after defining my classes variables as private


Section 8.4.2 of the spec reads:

Symbols with private visibility can only be accessed from within the same module. Private member functions are implicitly final and cannot be overridden.

If you were to put that Vector3 class in another module and import it, you'll find that private works as you expect.

You'll find this ability very useful when you start using Uniform Function Call Syntax in your code.


Reply via email to