Originally Posted by Lodur
Right. T is returned, so the chain may continue. self == T. object is only returned at the end.
T is just an empty table with a meta table set and the (object == the_control) is only captured in the closure of the anonymous function for the __index function of the metatable.
|
So if the T object is all that is getting returned in each part of the chain, when do the new functions from the __index metamethod get returned?