aboutsummaryrefslogtreecommitdiffstats
path: root/core/value.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-02 11:41:33 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-02 11:41:33 +0000
commit03853b35a473161f377fb74a05723cacc5cbf36b (patch)
tree2e3df044cc0ff3ed24a07d6b5ee31682f077e5fa /core/value.moon
parentnew op interface part one (diff)
downloadalive-03853b35a473161f377fb74a05723cacc5cbf36b.tar.gz
alive-03853b35a473161f377fb74a05723cacc5cbf36b.zip
IO system
Diffstat (limited to 'core/value.moon')
-rw-r--r--core/value.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/value.moon b/core/value.moon
index 0d44320..0e72486 100644
--- a/core/value.moon
+++ b/core/value.moon
@@ -36,8 +36,8 @@ class Result
if @op
for input in @op\all_inputs!
- continue if is_child[input]
- @side_inputs[input] = true
+ continue if is_child[input.stream]
+ @side_inputs[input.stream] = true
is_const: => not next @side_inputs
@@ -97,7 +97,7 @@ class Value
-- * scope, opdef, fndef, builtin
-- @value - Lua value - access through :unwrap()
new: (@type, @value, @raw) =>
- @updated = 0
+ @updated = nil
dirty: => @updated == Registry.active!.tick