From 76755b2836b0dadd88f82635f661f9d9df77604d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 10 Nov 2015 21:35:42 -0800 Subject: 2423 - describe shape-shifting in html docs --- html/062array.mu.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'html/062array.mu.html') diff --git a/html/062array.mu.html b/html/062array.mu.html index b65da102..4f800098 100644 --- a/html/062array.mu.html +++ b/html/062array.mu.html @@ -13,13 +13,13 @@ pre { white-space: pre-wrap; font-family: monospace; color: #eeeeee; background-color: #080808; } body { font-family: monospace; color: #eeeeee; background-color: #080808; } * { font-size: 1.05em; } -.muScenario { color: #00af00; } +.muControl { color: #c0a020; } .muRecipe { color: #ff8700; } +.muScenario { color: #00af00; } .Comment { color: #9090ff; } .Constant { color: #00a0a0; } .Special { color: #ff6060; } .Delimiter { color: #a04060; } -.muControl { color: #c0a020; } --> @@ -33,8 +33,8 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
 scenario array-from-args [
   run [
-    1:address:array:location <- new-array 0, 1, 2
-    2:array:location <- copy *1:address:array:location
+    1:address:array:character <- new-array 0, 1, 2
+    2:array:character <- copy *1:address:array:character
   ]
   memory-should-contain [
     2 <- 3  # array length
@@ -50,21 +50,21 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; }
   capacity:number <- copy 0
   {
     # while read curr-value
-    curr-value:location, exists?:boolean <- next-ingredient
+    curr-value:character, exists?:boolean <- next-ingredient
     break-unless exists?
     capacity <- add capacity, 1
     loop
   }
-  result:address:array:location <- new location:type, capacity
+  result:address:array:character <- new character:type, capacity
   rewind-ingredients
   i:number <- copy 0
   {
     # while read curr-value
     done?:boolean <- greater-or-equal i, capacity
     break-if done?
-    curr-value:location, exists?:boolean <- next-ingredient
+    curr-value:character, exists?:boolean <- next-ingredient
     assert exists?, [error in rewinding ingredients to new-array]
-    tmp:address:location <- index-address *result, i
+    tmp:address:character <- index-address *result, i
     *tmp <- copy curr-value
     i <- add i, 1
     loop
-- 
cgit 1.4.1-2-gfad0