diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-19 15:57:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-19 15:57:10 -0700 |
commit | 3ac523393d15d51b0fd1b042eab4f7cb539f68a9 (patch) | |
tree | 4de3879dda5682a2509dea4af52ecabc1b6f14a1 /084console.mu | |
parent | 1f69d061c17d83b0a665c4fee2407fac1b714b68 (diff) | |
download | mu-3ac523393d15d51b0fd1b042eab4f7cb539f68a9.tar.gz |
2798 - experiment: split channels into two ends
This way when you pass one end to a function or routine, you can implicitly give it the right to either read or write the channel, but not both. The cost: code gets more convoluted, names get more convoluted. You can see this in particular in the test for buffer-lines. Let's see how it goes..
Diffstat (limited to '084console.mu')
-rw-r--r-- | 084console.mu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/084console.mu b/084console.mu index 805e28d4..cfa0521a 100644 --- a/084console.mu +++ b/084console.mu @@ -72,7 +72,7 @@ def read-key console:address:shared:console -> result:character, console:address return *c, console/same-as-ingredient:0, 1/found, 0/quit ] -def send-keys-to-channel console:address:shared:console, chan:address:shared:channel:character, screen:address:shared:screen -> console:address:shared:console, chan:address:shared:channel:character, screen:address:shared:screen [ +def send-keys-to-channel console:address:shared:console, chan:address:shared:sink:character, screen:address:shared:screen -> console:address:shared:console, chan:address:shared:sink:character, screen:address:shared:screen [ local-scope load-ingredients { |