1. ev={} 2. functin ev.__call() 3. print "called from ev" 4. end 5. 6. setmetatable(ev, ev) 7. 8. -- test it 9. ev()