NotesByLex

Lua

Notes tagged Lua · all topics

  1. Object Prototypes

    noteLua

    OOP in Lua via prototypal inheritance: objects delegate missing field lookups to a prototype table.

  2. Metatables

    noteLua

    A table attached to another table to define its custom behaviour, via metamethods like __add and __index.

  3. Lua Coroutines

    noteLua

    Functions that can pause and resume execution, similar to Python generators.