diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-02-03 19:25:18 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | dccf421a285686f4515f0373d1f64601dc02a880 (patch) | |
| tree | 716b1d774ed772b7453a9102fa7aec43f0cc635f | |
| parent | lib: add testing module (diff) | |
| download | alive-dccf421a285686f4515f0373d1f64601dc02a880.tar.gz alive-dccf421a285686f4515f0373d1f64601dc02a880.zip | |
fix input caching/lazy ticking at evaltime
| -rw-r--r-- | alv/base/op.moon | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/alv/base/op.moon b/alv/base/op.moon index a6869d0..982d75b 100644 --- a/alv/base/op.moon +++ b/alv/base/op.moon @@ -23,7 +23,7 @@ class Op fork: => out = if @out then @out\fork! state = if @state then deep_copy @state - @@ out, state + @@ out, state, @inputs --- internal state of this Op. -- @@ -130,15 +130,11 @@ class Op -- super-methods and utilities for use by implementations. -- @section super - --- if `type` is passed, an output stream is instantiated. - -- if `init` is passed, the stream is initialized to that Lua value. - -- it is okay not to use this and create the output stream in :setup() if the - -- type is not known at this time. - -- -- @classmethod -- @tparam ?Result out `out` -- @tparam ?table state `state` - new: (@out, @state) => + -- @tparam ?table inputs `inputs` + new: (@out, @state, @inputs) => do_setup = (old, cur) -> -- are these inputs or nested tables? |
