Search results
Results from the WOW.Com Content Network
Lua provides some syntactic sugar to facilitate object orientation. To declare member functions inside a prototype table, one can use function table: func (args), which is equivalent to function table. func (self, args). Calling class methods also makes use of the colon: object: func (args) is equivalent to object. func (object, args).