Thread: Window Chaining
View Single Post
03/07/14, 10:12 AM   #6
inDef
Join Date: Mar 2014
Posts: 16
Originally Posted by Lodur View Post
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?
  Reply With Quote