aboutsummaryrefslogtreecommitdiffstats
path: root/alv/copilot.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-08 09:41:08 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commit99ca67938c0145db37182bdb709d9424a20dfee0 (patch)
tree6df4e2b5fde650aa3c7e36893eb1780f932d56bd /alv/copilot.moon
parentrelease v0.1 (diff)
downloadalive-99ca67938c0145db37182bdb709d9424a20dfee0.tar.gz
alive-99ca67938c0145db37182bdb709d9424a20dfee0.zip
wip new type system and refactoring
- Result -> RTNode - Stream -> Result - ValueStream -> SigStream - EventStream -> EvtStream
Diffstat (limited to 'alv/copilot.moon')
-rw-r--r--alv/copilot.moon8
1 files changed, 4 insertions, 4 deletions
diff --git a/alv/copilot.moon b/alv/copilot.moon
index 7ef2134..d9b674f 100644
--- a/alv/copilot.moon
+++ b/alv/copilot.moon
@@ -6,8 +6,8 @@ lfs = require 'lfs'
import Scope from require 'alv.scope'
import Module from require 'alv.module'
import Error from require 'alv.error'
-import Result from require 'alv.result'
-import ValueStream from require 'alv.stream'
+import RTNode from require 'alv.rtnode'
+import Constant from require 'alv.result'
export COPILOT
@@ -41,12 +41,12 @@ class Copilot
--- require a module.
-- @tparam string name
- -- @treturn Result result
+ -- @treturn RTNode root
require: (name) =>
Error.wrap "loading module '#{name}'", ->
ok, lua = pcall require, "alv-lib.#{name}"
if ok
- Result value: ValueStream.wrap lua
+ RTNode value: Constant.wrap lua
else
assert @modules, "no current eval cycle?"
if mod = @modules[name]