diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-12-28 08:44:36 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-12-28 08:44:36 -0800 |
commit | bbe0801ab1e0b0859c3529ed33fde40b139addd6 (patch) | |
tree | fa534bbbb3b345d154432746cd585f9262bd80cd /sandbox/009-sandbox-trace.mu | |
parent | e94453100dda87a42dee36b2671f850ab6824f54 (diff) | |
download | mu-bbe0801ab1e0b0859c3529ed33fde40b139addd6.tar.gz |
2548 - teach 'print' to print integers
Still can't print non-integer numbers, so this is a bit hacky. The big consequence is that you can't print literal characters anymore because of our rules about how we pick which variant to statically dispatch to. You have to save to a character variable first. Maybe I can add an annotation to literals..
Diffstat (limited to 'sandbox/009-sandbox-trace.mu')
-rw-r--r-- | sandbox/009-sandbox-trace.mu | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sandbox/009-sandbox-trace.mu b/sandbox/009-sandbox-trace.mu index df74df47..45759b75 100644 --- a/sandbox/009-sandbox-trace.mu +++ b/sandbox/009-sandbox-trace.mu @@ -25,7 +25,8 @@ scenario sandbox-click-on-code-toggles-app-trace [ ] run [ event-loop screen:address:screen, console:address:console, 2:address:programming-environment-data - print screen:address:screen, 9251/␣/cursor + 4:character/cursor-icon <- copy 9251/␣ + print screen:address:screen, 4:character/cursor-icon ] # trace now printed and cursor shouldn't have budged screen-should-contain [ @@ -54,7 +55,7 @@ scenario sandbox-click-on-code-toggles-app-trace [ ] run [ event-loop screen:address:screen, console:address:console, 2:address:programming-environment-data - print screen:address:screen, 9251/␣/cursor + print screen:address:screen, 4:character/cursor-icon ] # trace hidden again screen-should-contain [ |