The following three are equivalent:
- self.event(self)
- self:event()
- self["event"](self)
if however event is a variable (in contrast to the string "event"), your only way of calling is
- self[event]()
__________________
This posting is made of 100% recycled electrons.
Last edited by Elkano : 03-02-15 at 05:49 AM.
|