[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: metatable, __index & forwardInvocation?
- From: PA <petite.abeille@...>
- Date: Sat, 5 Feb 2005 18:00:36 +0100
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, ????? )
end
How do I retrieve the original parameters to doIt()?
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/