about summary refs log tree commit diff stats
path: root/channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-16 16:35:08 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-16 16:35:08 -0800
commitcbecfe10f9754dbec52659c15834aefcb3d5d2ac (patch)
treea2162478a5aacae9d3cc8767bb102984b9e63718 /channel.mu
parentd2db5af7b82a935dc2929a1db2e6d13db660be89 (diff)
downloadmu-cbecfe10f9754dbec52659c15834aefcb3d5d2ac.tar.gz
574 - printing string literals is a hack; hard-code it in for now
Diffstat (limited to 'channel.mu')
-rw-r--r--channel.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/channel.mu b/channel.mu
index ea6c89a8..0dd71ccc 100644
--- a/channel.mu
+++ b/channel.mu
@@ -8,9 +8,9 @@
     (done?:boolean <- less-than n:integer 5:literal)
     (break-unless done?:boolean)
     ; other threads might get between these prints
-    (print-primitive nil:literal/terminal (("produce: " literal)))
+    (print-primitive-to-host (("produce: " literal)))
     (print-primitive nil:literal/terminal n:integer)
-    (print-primitive nil:literal/terminal (("\n" literal)))
+    (print-primitive-to-host (("\n" literal)))
     ; 'box' n into a dynamically typed 'tagged value' because that's what
     ; channels take
     (n2:integer <- copy n:integer)
@@ -31,9 +31,9 @@
     ; unbox the tagged value into an integer
     (n2:integer <- maybe-coerce x:tagged-value integer:literal)
     ; other threads might get between these prints
-    (print-primitive nil:literal/terminal (("consume: " literal)))
+    (print-primitive-to-host (("consume: " literal)))
     (print-primitive nil:literal/terminal n2:integer)
-    (print-primitive nil:literal/terminal (("\n" literal)))
+    (print-primitive-to-host (("\n" literal)))
     (loop)
   }
 ])