lua: metatable dispatch (__index/__newindex/arith/cmp/__call/__len) +23 tests
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 17:57:27 +00:00
parent 4815db461b
commit 43c13c4eb1
4 changed files with 313 additions and 33 deletions

View File

@@ -104,7 +104,9 @@
(node)
(let
((fn-ast (nth node 1)) (args (nth node 2)))
(cons (lua-tx fn-ast) (map lua-tx args)))))
(cons
(make-symbol "lua-call")
(cons (lua-tx fn-ast) (map lua-tx args))))))
(define
lua-tx-method-call
@@ -115,8 +117,10 @@
(name (nth node 2))
(args (nth node 3)))
(cons
(list (make-symbol "lua-get") obj name)
(cons obj (map lua-tx args))))))
(make-symbol "lua-call")
(cons
(list (make-symbol "lua-get") obj name)
(cons obj (map lua-tx args)))))))
(define
lua-tx-field