Quote:
Originally Posted by Digital_Utopia
Well..part of that is a bit of a typo. It should be:
Code:
self.BronkenFunction = function()
self.int = self.int+1
end
Instead of using MyWindow.
|
Yea this would work if you created the function in another function, so it would take self from parent scope - which is in a lot of cases bad practice, because it would create new function on every call. I mean it is usefull sometimes, but it shouldn't be used so we can call functions that are supposed to have "self" reference with dot operator.