diff options
Diffstat (limited to 'channel.mu')
-rw-r--r-- | channel.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channel.mu b/channel.mu index 61f0e92b..94cb2521 100644 --- a/channel.mu +++ b/channel.mu @@ -2,7 +2,7 @@ recipe producer [ # produce numbers 1 to 5 on a channel - new-default-space + local-scope chan:address:channel <- next-ingredient # n = 0 n:number <- copy 0:literal @@ -20,7 +20,7 @@ recipe producer [ recipe consumer [ # consume and print integers from a channel - new-default-space + local-scope chan:address:channel <- next-ingredient { # read an integer from the channel @@ -33,7 +33,7 @@ recipe consumer [ ] recipe main [ - new-default-space + local-scope chan:address:channel <- new-channel 3:literal # create two background 'routines' that communicate by a channel routine1:number <- start-running producer:recipe, chan:address:channel |