lua: method-call binds obj to temp (no more double-eval); chaining works +1 test
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 22:25:51 +00:00
parent 27425a3173
commit e105edee01
5 changed files with 56 additions and 38 deletions

View File

@@ -130,11 +130,16 @@
((obj (lua-tx (nth node 1)))
(name (nth node 2))
(args (nth node 3)))
(cons
(make-symbol "lua-call")
(cons
(list (make-symbol "lua-get") obj name)
(cons obj (map lua-tx args)))))))
(let
((tmp (make-symbol "__obj")))
(list
(make-symbol "let")
(list (list tmp obj))
(cons
(make-symbol "lua-call")
(cons
(list (make-symbol "lua-get") tmp name)
(cons tmp (map lua-tx args)))))))))
(define
lua-tx-field