From 7d2c2d55e83325a5efb66af0a033b94583fca70e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 1 Feb 2015 00:15:43 -0800 Subject: 690 - convention: '$' commands for debugging only Swap printing generalized objects using arc's infrastructure to be the $-prefixed debug helper, while the erstwhile $print-key-to-host becomes the primitive print-character to host. --- counters.mu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'counters.mu') diff --git a/counters.mu b/counters.mu index 0b7a4882..0e414513 100644 --- a/counters.mu +++ b/counters.mu @@ -23,11 +23,11 @@ (bres:integer <- increment-counter b:space-address 2:literal) (ares:integer <- increment-counter a:space-address 1:literal) ; check results - (print-primitive-to-host (("Contents of counters a: " literal))) + ($print (("Contents of counters a: " literal))) (print-integer nil:literal/terminal ares:integer) - (print-primitive-to-host ((" b: " literal))) + ($print ((" b: " literal))) (print-integer nil:literal/terminal bres:integer) - (print-primitive-to-host (("\n" literal))) + ($print (("\n" literal))) ]) ; compare http://www.paulgraham.com/accgen.html -- cgit 1.4.1-2-gfad0