aboutsummaryrefslogtreecommitdiffstats
path: root/core/invoke.moon
diff options
context:
space:
mode:
Diffstat (limited to 'core/invoke.moon')
-rw-r--r--core/invoke.moon4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/invoke.moon b/core/invoke.moon
index a3932f8..da82d00 100644
--- a/core/invoke.moon
+++ b/core/invoke.moon
@@ -10,13 +10,15 @@ class op_invoke extends Action
def = head\unwrap 'opdef', "cant op-invoke #{@head}"
@head, @op = head, def!
+ @first = true
true
eval: (scope, tail) =>
children = L\push -> [L\push expr\eval, scope for expr in *tail]
@op\setup [child.value for child in *children]
- @op\tick true
+ @op\tick @first
+ @first = nil
Result :children, value: @op.out, op: @op