• ## Object Prototypes

In Lua, object-oriented programming is achieved using prototypal inheritance, since Lua does not have the concept of a class. Prototypal inheritance simply means that objects …

• ## Lua Table-Access Metamethods

Table access [[metamethods (Lua)]] provide a mechanism for handling table lookup using the __index metamethod and writes to missing keys, using the __newindex metamethod. They …

• ## Metatables

In Lua, since everything is a tables, metatables are a paradigm that lets you change the behaviour of a table, using another table. For example …

• ## Lua Coroutines

Coroutines in Lua are related to [[Generators (Python)]]. They allow a function to be written to return intermittantly using the yield() function call on the …