Respond to an unknown method call: Difference between revisions
Content added Content deleted
(omit from unix shell) |
|||
Line 219: | Line 219: | ||
=={{header|Lua}}== |
=={{header|Lua}}== |
||
This is specifically the purpose of the __index metamethod: |
|||
<lang Lua> |
<lang Lua> |
||
local object={print=print} |
local object={print=print} |