my blog lives here now
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
605 B

2 years ago
  1. eq_3f_1 = setmetatable1(({["lookup"]=({})}), ({["__call"]=(function(temp_this, x, y)
  2. local temp_method
  3. local temp = temp_this["lookup"]
  4. if temp then
  5. local temp1 = temp[type1(x)]
  6. if temp1 then
  7. temp_method = temp1[type1(y)] or nil
  8. else
  9. temp_method = nil
  10. end
  11. else
  12. temp_method = nil
  13. end
  14. if not temp_method then
  15. if temp_this["default"] then
  16. temp_method = temp_this["default"]
  17. else
  18. error1("No matching method to call for " .. (type1(x) .. " ") .. (type1(y) .. " ") .. "\nthere are methods to call for " .. keys1(temp_this["lookup"]))
  19. end
  20. end
  21. return temp_method(x, y)
  22. end)}))