about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-11 09:59:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-11 09:59:29 -0700
commit4e6778d7cc155c8ad38b605a1dfa9296199afd58 (patch)
tree02c218cee36f0bc47e7b6f548da1c5bdf1930868
parent1d025275153d571990f753a367f392ebfc94caf7 (diff)
downloadmu-4e6778d7cc155c8ad38b605a1dfa9296199afd58.tar.gz
1341
-rw-r--r--Readme.md17
-rw-r--r--fork.mu10
2 files changed, 19 insertions, 8 deletions
diff --git a/Readme.md b/Readme.md
index 1c1f693a..7630318b 100644
--- a/Readme.md
+++ b/Readme.md
@@ -257,6 +257,23 @@ just flat lists of instructions.
 
 Another example, this time with concurrency.
 
+```
+  recipe main [
+    start-running thread2:recipe
+    {
+      $print 34:literal
+      loop
+    }
+  ]
+
+  recipe thread2 [
+    {
+      $print 35:literal
+      loop
+    }
+  ]
+```
+
 ```shell
   $ ./mu fork.mu
 ```
diff --git a/fork.mu b/fork.mu
index 1e3bac99..3917120f 100644
--- a/fork.mu
+++ b/fork.mu
@@ -1,20 +1,14 @@
 recipe main [
   start-running thread2:recipe
-  default-space:address:array:location <- new location:type, 2:literal
-  x:integer <- copy 34:literal
   {
-    $print x:integer, [
-]
+    $print 34:literal
     loop
   }
 ]
 
 recipe thread2 [
-  default-space:address:array:location <- new location:type, 2:literal
-  y:integer <- copy 35:literal
   {
-    $print y:integer, [
-]
+    $print 35:literal
     loop
   }
 ]