lua-users home
lua-l archive

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


Dirk,

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

Regards, Janus

On Fri, May 25, 2012 at 8:10 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
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.




--
Satajanus  Nig. Ltd