LUA __call

1. ev={}
 
2. functin ev.__call()

3.   print "called from ev"

4. end

5. 

6. setmetatable(ev, ev)

7. 

8. -- test it

9. ev() 

 

posted @ 2016-11-11 15:13  时空观察者9号  阅读(361)  评论(0编辑  收藏  举报