lua-users home
lua-l archive

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

On Feb 05, 2005, at 17:52, Rici Lake wrote:

The table lookup happens first, so the __index metamethod needs to return a function. That function will then be called with the "original" (and only) arguments.

Ok. I went that far.

Assuming the following invocation:

anObject.doIt( true )

And the following __index function:

__index = function( aTable, aKey )
    return this.forwardInvocation( aKey, ????? )

How do I retrieve the original parameters to doIt()?


PA, Onnay Equitursay