You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot documentation says how you can make a private variable/function by prepending an underscore. However, to my understanding, the only functionality the underscore has, is that the variable/function is ignored by autocompletion. You can still access the variable/function from outside.
I propose that either
Variables/functions starting with underscore are changed to actually being private and not accessible from outside.
or
Documentation is changed to tell what the underscore actually does. It would be better not to use the word "private" at all to confuse users.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Godot documentation says how you can make a private variable/function by prepending an underscore. However, to my understanding, the only functionality the underscore has, is that the variable/function is ignored by autocompletion. You can still access the variable/function from outside.
I propose that either
or
Beta Was this translation helpful? Give feedback.
All reactions