The Self Special Identifier. Is it optional?

Just trying to understand how the self identifier is used in Verse. I don’t see it around a lot but do from time to time. In the tutorial about the Moving Objective Indicator,
it is used. I understand that it refers to an instance of the class as a whole, and that it is a special identifier used with class methods. But what I don’t understand is why the code still works without. Is it optional? Is there an example of how not using it would cause the code not to work?

Any insights appreciated.

Hi, yea it’s optional. A time you actually need it is when passing Self to a function outside of the class, e.g. DoFunc(Self).

This helped me to resolve. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.