lua-users home
lua-l archive

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


If won't mind, I would like to see an example.

Regards, Janus

On Fri, May 25, 2012 at 8:10 AM, Dirk Laurie <> wrote:
2012/5/25 Tim Mensch <>:

> 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.

Satajanus  Nig. Ltd