lua-users home
lua-l archive

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


2015-12-31 10:34 GMT+02:00 Marc Balmer <marc@msys.ch>:

> When a nested __index metamethod is being called, does
> it still get the original table as the first argument, or the table
> that caused this __index metamethod to be called (i.e. the
> previously indexed table)?

It's a tail call. I.e. all that happens is that exactly the same
stack is presented to the new function. Since the original
table was the first argument, it still is.