View Single Post
  #9  
Unread 10-08-2010, 04:15 AM
Kryso Kryso is offline
The Undefeated
 
Join Date: Oct 2010
Posts: 8
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.
Reply With Quote