View Single Post
03-02-15, 05:39 AM   #5
Leapin
A Defias Bandit
Join Date: Mar 2015
Posts: 3
Originally Posted by Elkano View Post
The following three are equivalent:
- self.event(self)
- self:event()
- self["event"]()

if however event is a variable (in contrast to the string "event"), your only way of calling is
- self[event]()
Ah yes, ofcourse. Thank you

Last edited by Leapin : 03-02-15 at 05:41 AM.
  Reply With Quote