about summary refs log tree commit diff stats
path: root/308allocate-array.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-28 21:17:32 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-28 21:37:32 -0700
commitb8df5340fa55f79fd544ab130da4052ed88aca4f (patch)
tree5be4ccdb93eccfaba6e5d3b816a9e9b86f631d15 /308allocate-array.subx
parente2c22ad4d9cbc99f4f256559819650c4d74261af (diff)
downloadmu-b8df5340fa55f79fd544ab130da4052ed88aca4f.tar.gz
6682 - experimental support for streams and slices
Slices contain `addr`s so the same rules apply to them. They can't be stored
in structs and so on. But they may be an efficient temporary while parsing.

Streams are currently a second generic type after arrays, and gradually
strengthening the case to just bite the bullet and support first-class
generics in Mu.
Diffstat (limited to '308allocate-array.subx')
-rw-r--r--308allocate-array.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/308allocate-array.subx b/308allocate-array.subx
index 7040106c..01eb1dc3 100644
--- a/308allocate-array.subx
+++ b/308allocate-array.subx
@@ -1,6 +1,6 @@
 # 2-arg version of allocate-array.
 
-allocate-array2:  # ad: (addr allocation-descriptor), elem-size: int, array-len: int, out: (addr handle array _)
+allocate-array2:  # ad: (addr allocation-descriptor), array-len: int, elem-size: int, out: (addr handle array _)
     # . prologue
     55/push-ebp
     89/<- %ebp 4/r32/esp