Lua metatable
A metatable is a special table that changes how another table behaves.
Core idea
Every table can have metatable
Demo
__index
__index is a special field in a metatable that tells Lua:
If a key is not found in this table, look somewhere else