aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8821710..b39b4bb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -480,6 +480,12 @@ pub enum Op {
/// Does not affect the stack.
Define(usize),
+ /// Links the upvalues for the given constant
+ /// function. This updates the constant stack.
+ ///
+ /// Does not affect the stack.
+ Link(usize),
+
/// Calls "something" with the given number
/// of arguments. The callable value is
/// then replaced with the result.
@@ -1275,11 +1281,11 @@ f :: fn -> fn -> {
g := f()
g()
-q <=> 3
+q <=> 1
g()
-q <=> 4
+q <=> 2
g()
-q <=> 5
+q <=> 3
",
);