about summary refs log tree commit diff stats
path: root/101run_sandboxed.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-03-20 00:51:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-03-20 00:51:45 -0700
commit227c11e297779af9c901d49ef57ac34c545ad44d (patch)
tree8c1f8eb5fcb85b11327dfe1951635647d23d3d2c /101run_sandboxed.cc
parent890f9b6142cfa336d4ca77be3ff884086199e7e7 (diff)
downloadmu-227c11e297779af9c901d49ef57ac34c545ad44d.tar.gz
3801
Diffstat (limited to '101run_sandboxed.cc')
-rw-r--r--101run_sandboxed.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/101run_sandboxed.cc b/101run_sandboxed.cc
index d6680f0e..3db6b0a4 100644
--- a/101run_sandboxed.cc
+++ b/101run_sandboxed.cc
@@ -3,10 +3,10 @@
 
 :(scenario run_interactive_code)
 def main [
-  1:num/raw <- copy 0
+  1:num <- copy 0
   2:text <- new [1:num/raw <- copy 34]
   run-sandboxed 2:text
-  3:num/raw <- copy 1:num/raw
+  3:num <- copy 1:num
 ]
 +mem: storing 34 in location 3
 
@@ -326,7 +326,7 @@ def main [
   # try to interactively add 2 and 2
   1:text <- new [add 2, 2]
   2:text <- run-sandboxed 1:text
-  10:@:char <- copy 2:text/lookup
+  10:@:char <- copy *2:text
 ]
 # first letter in the output should be '4' in unicode
 +mem: storing 52 in location 11
@@ -340,7 +340,7 @@ def main [
     z:text <- append x:text, y:text
   ]
   2:text <- run-sandboxed 1:text
-  10:@:char <- copy 2:text/lookup
+  10:@:char <- copy *2:text
 ]
 # output contains "ab"
 +mem: storing 97 in location 11
@@ -352,7 +352,7 @@ def main [
   1:text <- new [x:num <- copy 34
 get x:num, foo:offset]
   2:text, 3:text <- run-sandboxed 1:text
-  10:@:char <- copy 3:text/lookup
+  10:@:char <- copy *3:text
 ]
 # error should be "unknown element foo in container number"
 +mem: storing 117 in location 11