From f1eade728695ed3f52ae4e13f0a91dfe769e8567 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 12 Jan 2020 12:11:15 -0800 Subject: 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. --- apps/tests.subx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/tests.subx') diff --git a/apps/tests.subx b/apps/tests.subx index 2cef958b..5609be0c 100644 --- a/apps/tests.subx +++ b/apps/tests.subx @@ -101,13 +101,13 @@ subx-gen-run-tests: # in : (addr buffered-file), out : (addr buffered-file) 52/push-edx 53/push-ebx 57/push-edi - # var line/ecx : (ref stream byte 512) + # var line/ecx : (stream byte 512) 81 5/subop/subtract 3/mod/direct 4/rm32/esp . . . . . 0x200/imm32 # subtract from esp 68/push 0x200/imm32/length 68/push 0/imm32/read 68/push 0/imm32/write 89/copy 3/mod/direct 1/rm32/ecx . . . 4/r32/esp . . # copy esp to ecx - # var word-slice/edx : (ref slice) + # var word-slice/edx : slice 68/push 0/imm32/end 68/push 0/imm32/start 89/copy 3/mod/direct 2/rm32/edx . . . 4/r32/esp . . # copy esp to edx -- cgit 1.4.1-2-gfad0