about summary refs log tree commit diff stats
path: root/061read-byte.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-12 12:11:15 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-12 14:49:35 -0800
commitf1eade728695ed3f52ae4e13f0a91dfe769e8567 (patch)
treed43079a8127487ecf9837600961f333e41ab7320 /061read-byte.subx
parente064f1bbfdbd4386d752fbb750bf36d91dce413b (diff)
downloadmu-f1eade728695ed3f52ae4e13f0a91dfe769e8567.tar.gz
5883 - drop the `ref` keyword
When I created it I was conflating two things:
a) needing to refer to just the start, rather than the whole, and
b) counting indirections.

Both are kinda ill-posed. Now Mu will have just `addr` and `handle` types.
Normal types will translate implicitly to `addr` types, while `handle`
will always require explicit handling.
Diffstat (limited to '061read-byte.subx')
-rw-r--r--061read-byte.subx8
1 files changed, 4 insertions, 4 deletions
diff --git a/061read-byte.subx b/061read-byte.subx
index ae09a7a5..47fa209f 100644
--- a/061read-byte.subx
+++ b/061read-byte.subx
@@ -11,7 +11,7 @@
 
 # The buffered file for standard input. Also illustrates the layout for
 # buffered-file: a pointer to the backing store, followed by a 'buffer' stream
-Stdin:  # (ref buffered-file)
+Stdin:  # buffered-file
     # file descriptor or (addr stream byte)
     0/imm32  # standard input
 $Stdin->buffer:
@@ -271,7 +271,7 @@ test-read-byte-buffered-refills-buffer:
 == data
 
 # a test buffered file for _test-stream
-_test-buffered-file:  # (ref buffered-file)
+_test-buffered-file:  # buffered-file
     # file descriptor or (addr stream byte)
     _test-stream/imm32
 $_test-buffered-file->buffer:
@@ -284,7 +284,7 @@ $_test-buffered-file->buffer:
     # data
     00 00 00 00 00 00  # 6 bytes
 
-_test-input-stream:  # (ref stream byte)
+_test-input-stream:  # (stream byte)
     # current write index
     0/imm32
     # current read index
@@ -310,7 +310,7 @@ _test-input-stream:  # (ref stream byte)
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 
 # a test buffered file for _test-input-stream
-_test-input-buffered-file:  # (ref buffered-file)
+_test-input-buffered-file:  # buffered-file
     # file descriptor or (addr stream byte)
     _test-input-stream/imm32
 $_test-input-buffered-file->buffer: