fork download
  1. -- your code goes here
  2.  
  3. t ={}
  4. t1 = {}
  5. mt = {
  6. __add =
  7. function(a, b)
  8. return a.value + b.value + 1
  9. end
  10. }
  11.  
  12. setmetatable(t, mt)
  13.  
  14. t.value = 3
  15. t1.value = 6
  16.  
  17. result = t + t1
  18.  
  19. print(result)
Success #stdin #stdout 0s 5640KB
stdin
Standard input is empty
stdout
10