diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-02-04 16:13:20 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 4135de8342e099bbcf53954cbba8f4928af8f329 (patch) | |
| tree | 3912cda7d30d57b0e8b7182f7f08dbc278639571 /alv/base | |
| parent | lib: use Op:update_out (diff) | |
| download | alive-4135de8342e099bbcf53954cbba8f4928af8f329.tar.gz alive-4135de8342e099bbcf53954cbba8f4928af8f329.zip | |
rename Op:update_out → setup_out
Diffstat (limited to 'alv/base')
| -rw-r--r-- | alv/base/op.moon | 2 | ||||
| -rw-r--r-- | alv/base/pureop.moon | 2 |
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 |
