diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 13:00:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 13:00:39 -0700 |
commit | a0331a9b0eab63a000dcd022fe605d124c573b8d (patch) | |
tree | 5c7403d16fd8c9d31ead65495eae84edf9cfc2e4 /059to_text.mu | |
parent | 760f683f2755038a1b0c16522f5001b889096aa5 (diff) | |
download | mu-a0331a9b0eab63a000dcd022fe605d124c573b8d.tar.gz |
3390
Diffstat (limited to '059to_text.mu')
-rw-r--r-- | 059to_text.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/059to_text.mu b/059to_text.mu index 678abbe7..66cced73 100644 --- a/059to_text.mu +++ b/059to_text.mu @@ -13,7 +13,7 @@ def to-text-line x:_elem -> y:text [ ] # variant for arrays (since we can't pass them around otherwise) -def array-to-text-line x:&:array:_elem -> y:text [ +def array-to-text-line x:&:@:_elem -> y:text [ local-scope load-ingredients y <- to-text *x @@ -25,7 +25,7 @@ scenario to-text-line-early-warning-for-static-dispatch [ ] scenario array-to-text-line-early-warning-for-static-dispatch [ - n:&:array:num <- new number:type, 3 + n:&:@:num <- new number:type, 3 x:text <- array-to-text-line n # just ensure there were no errors ] @@ -41,7 +41,7 @@ def to-text c:char -> y:text [ scenario character-to-text [ 1:char <- copy 111/o 2:text <- to-text 1:char - 3:array:char <- copy *2:text + 3:@:char <- copy *2:text memory-should-contain [ 3:array:character <- [o] ] |