View Full Version : Can the Timer handlers be function references in G4A13?
Mark F
April 26th, 2005, 07:50 AM
I need to completely re-work my serial objects when this change happens. It will make the objects simpler, smaller and they will retain the same function.
I'd like to make this change before releasing an Alpha/Beta of the Serial plugin.
Promixis
April 26th, 2005, 07:55 AM
Yes, they can...
to use a method of an object, you need to use this trickery :D
self.UpdateTimer = gir.CreateTimer (function (...) return self:UpdateCheck (unpack (arg)) end,function (...) return self:UpdateCheck (unpack (arg)) end,nil,1)
Mark F
April 26th, 2005, 08:02 AM
Thanks. I'll make use of the function references as soon as I can.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.