diff options
Diffstat (limited to 'html/channel.mu.html')
-rw-r--r-- | html/channel.mu.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/channel.mu.html b/html/channel.mu.html index 12babbde..15a75d1f 100644 --- a/html/channel.mu.html +++ b/html/channel.mu.html @@ -32,10 +32,10 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <pre id='vimCodeElement'> <span class="Comment"># example program: communicating between routines using channels</span> -<span class="muRecipe">recipe</span> producer [ +<span class="muRecipe">recipe</span> producer chan:address:channel<span class="muRecipe"> -> </span>chan:address:channel [ <span class="Comment"># produce characters 1 to 5 on a channel</span> <span class="Constant">local-scope</span> - chan:address:channel<span class="Special"> <- </span><span class="Constant">next-ingredient</span> + <span class="Constant">load-ingredients</span> <span class="Comment"># n = 0</span> n:character<span class="Special"> <- </span>copy <span class="Constant">0</span> <span class="Delimiter">{</span> @@ -50,10 +50,10 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <span class="Delimiter">}</span> ] -<span class="muRecipe">recipe</span> consumer [ +<span class="muRecipe">recipe</span> consumer chan:address:channel<span class="muRecipe"> -> </span>chan:address:channel [ <span class="Comment"># consume and print integers from a channel</span> <span class="Constant">local-scope</span> - chan:address:channel<span class="Special"> <- </span><span class="Constant">next-ingredient</span> + <span class="Constant">load-ingredients</span> <span class="Delimiter">{</span> <span class="Comment"># read an integer from the channel</span> n:character, chan:address:channel<span class="Special"> <- </span>read chan |