💬

Community answer

Collected from the ACE community Discord archive around 2018-12-29. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Methods vs functions: hidden self argument

🌙 LuaUpdated 2 days ago•0 views
Same functionality - the only difference is syntax: methods (defined with ':') get a hidden self argument passed as first parameter.

What's the difference between lua functions and methods

Same functionality - the only difference is syntax: methods (defined with ':') get a hidden self argument passed as first parameter.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.