Quantcast
Viewing all articles
Browse latest Browse all 40

When calling a private class method from the same class, do it without an exp...

Private functions, either class or instance level, cannot be called with an explicit receiver, not even "self". They must be called without an explicit receiver, which uses the implicit "self" receiver; otherwise an error is raised. This completes the changes in d3999ae79ab71256d5263f2efd33bd01d5a3d0b9 and fca8dd54f456ac910e88a478b443cf6a26c891d9 to have truly private class methods in the project.

Viewing all articles
Browse latest Browse all 40

Trending Articles