lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2012/5/25 Tim Mensch <tim-lua-l@bitgems.com>:


> The __index metamethod tells Lua what to do if someone tries to look up an
> undefined key on a table.

And (ex-Pythonistas please beware) it does NOT override the
normal table indexing method when the key is already present.