💬

Community answer

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

Starfall class() and self explained

🌙 LuaUpdated 2 days ago•0 views
The class function is just the middleclass library by kikito (github.com/kikito/middleclass). self is syntax sugar - function t:lol() is equivalent to function …

How do classes work in Starfall and what is self

The class function is just the middleclass library by kikito (github.com/kikito/middleclass). self is syntax sugar - function t:lol() is equivalent to function t.lol(self) so self is the table the method was called on.

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.