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
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user