3 ms·
Lua has metamethods: https://www.lua.org/manual/5.3/manual.html#2.4 https://www.lua.org/manual/5.3/manual.html#2.4
by spacechild1 3y ago
Lua has metamethods: https://www.lua.org/manual/5.3/manual.html#2.4 https://www.lua.org/manual/5.3/manual.html#2.4
- lifthrasiir 3y agoThey reside in metatables, which are only optionally linked to ordinary objects. Python magic methods are a part of the core object protocol.