diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 15:01:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 15:01:51 -0700 |
commit | f344b250f6f062a1a1902bf69b23ebf9b565de0e (patch) | |
tree | 199bd32a9aee198d5028b1c21b83d2cf0944b2b6 /html/059to_text.mu.html | |
parent | 897ae8c1855f830d8819759ea327d147f28a09bf (diff) | |
download | mu-f344b250f6f062a1a1902bf69b23ebf9b565de0e.tar.gz |
3395
Diffstat (limited to 'html/059to_text.mu.html')
-rw-r--r-- | html/059to_text.mu.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/059to_text.mu.html b/html/059to_text.mu.html index b050f5e9..820a9b47 100644 --- a/html/059to_text.mu.html +++ b/html/059to_text.mu.html @@ -44,7 +44,7 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] <span class="Comment"># variant for arrays (since we can't pass them around otherwise)</span> -<span class="muRecipe">def</span> array-to-text-line x:address:array:_elem<span class="muRecipe"> -> </span>y:text [ +<span class="muRecipe">def</span> array-to-text-line x:&:@:_elem<span class="muRecipe"> -> </span>y:text [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> y<span class="Special"> <- </span>to-text *x @@ -56,13 +56,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] <span class="muScenario">scenario</span> array-to-text-line-early-warning-for-static-dispatch [ - n:address:array:number<span class="Special"> <- </span>new <span class="Constant">number:type</span>, <span class="Constant">3</span> + n:&:@:num<span class="Special"> <- </span>new <span class="Constant">number:type</span>, <span class="Constant">3</span> x:text<span class="Special"> <- </span>array-to-text-line n <span class="Comment"># just ensure there were no errors</span> ] <span class="Comment"># finally, a specialization for single characters</span> -<span class="muRecipe">def</span> to-text c:character<span class="muRecipe"> -> </span>y:text [ +<span class="muRecipe">def</span> to-text c:char<span class="muRecipe"> -> </span>y:text [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> y<span class="Special"> <- </span>new <span class="Constant">character:type</span>, <span class="Constant">1/capacity</span> @@ -70,9 +70,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] <span class="muScenario">scenario</span> character-to-text [ - <span class="Constant">1</span>:character<span class="Special"> <- </span>copy <span class="Constant">111/o</span> - <span class="Constant">2</span>:text<span class="Special"> <- </span>to-text <span class="Constant">1</span>:character - <span class="Constant">3</span>:array:character<span class="Special"> <- </span>copy *<span class="Constant">2</span>:text + <span class="Constant">1</span>:char<span class="Special"> <- </span>copy <span class="Constant">111/o</span> + <span class="Constant">2</span>:text<span class="Special"> <- </span>to-text <span class="Constant">1</span>:char + <span class="Constant">3</span>:@:char<span class="Special"> <- </span>copy *<span class="Constant">2</span>:text memory-should-contain [ <span class="Constant">3</span>:array:character<span class="Special"> <- </span><span class="Constant">[o]</span> ] |