aboutsummaryrefslogtreecommitdiffstats
path: root/alv/base
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-02-04 16:13:20 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:24:49 +0000
commit4135de8342e099bbcf53954cbba8f4928af8f329 (patch)
tree3912cda7d30d57b0e8b7182f7f08dbc278639571 /alv/base
parentlib: use Op:update_out (diff)
downloadalive-4135de8342e099bbcf53954cbba8f4928af8f329.tar.gz
alive-4135de8342e099bbcf53954cbba8f4928af8f329.zip
rename Op:update_out → setup_out
Diffstat (limited to 'alv/base')
-rw-r--r--alv/base/op.moon2
-rw-r--r--alv/base/pureop.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/alv/base/op.moon b/alv/base/op.moon
index 4153a52..a6b0947 100644
--- a/alv/base/op.moon
+++ b/alv/base/op.moon
@@ -169,7 +169,7 @@ class Op
-- @tparam string metatype (one of `!` or `~`)
-- @tparam Type type
-- @tparam[opt] any val initial value
- update_out: (metatype, type, val) =>
+ setup_out: (metatype, type, val) =>
if @out and @out.type == type and @out.metatype == metatype
-- we can just keep it. do nothing.
return false
diff --git a/alv/base/pureop.moon b/alv/base/pureop.moon
index 449519a..a5c146c 100644
--- a/alv/base/pureop.moon
+++ b/alv/base/pureop.moon
@@ -57,7 +57,7 @@ class PureOp extends Op
if typ
assert (ancestor typ.__class) == Type, "not a type: #{typ}"
metatype = if trigger then '!' else '~'
- @update_out metatype, typ
+ @setup_out metatype, typ
map_fn = if trigger then hot_if_trigger trigger else Input.hot
inputs = deep_map args, map_fn