Originally Posted by Aanson
In the above example, the function is replicated and _G["MyButton"..i].DoSomething is not a pointer to the locally defined function 'DoSomething', it's a separate copy of the function.
|
This is not correct. You can compare self.TestFunction == TestFunction in your example to see that they are references to the same function.
It sounds to me like however you were redefining the function in your test was creating a new instance of it.