From 4690ce81e079fc58cae8d6d583e5e3eb3ed81a83 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 9 Mar 2016 02:56:27 -0800 Subject: 2743 Looks like "TOhtml | " doesn't work on Mac OS X for some reason.. --- html/channel.mu.html | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) (limited to 'html/channel.mu.html') diff --git a/html/channel.mu.html b/html/channel.mu.html index 98bd4066..405dd291 100644 --- a/html/channel.mu.html +++ b/html/channel.mu.html @@ -3,36 +3,28 @@ Mu - channel.mu - - + + - - + - - -
+
 # example program: communicating between routines using channels
 
-recipe producer chan:address:shared:channel -> chan:address:shared:channel [
+def producer chan:address:shared:channel -> chan:address:shared:channel [
   # produce characters 1 to 5 on a channel
   local-scope
   load-ingredients
@@ -50,7 +42,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
   }
 ]
 
-recipe consumer chan:address:shared:channel -> chan:address:shared:channel [
+def consumer chan:address:shared:channel -> chan:address:shared:channel [
   # consume and print integers from a channel
   local-scope
   load-ingredients
@@ -64,7 +56,7 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
   }
 ]
 
-recipe main [
+def main [
   local-scope
   chan:address:shared:channel <- new-channel 3
   # create two background 'routines' that communicate by a channel
@@ -76,4 +68,3 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 
- -- cgit 1.4.1-2-gfad0