about summary refs log tree commit diff stats
path: root/062array.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-13 10:03:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-13 10:03:26 -0700
commit5497090aa1e708c22cd240913a53dda32bb067aa (patch)
tree5a9eb76d447736a8199230c9386bd0a374b325dd /062array.mu
parent01caf342d072115c27926b1a61c2fc75ab9fbee0 (diff)
downloadmu-5497090aa1e708c22cd240913a53dda32bb067aa.tar.gz
1363 - rename 'integer' to 'number'
..now that we support non-integers.
Diffstat (limited to '062array.mu')
-rw-r--r--062array.mu14
1 files changed, 7 insertions, 7 deletions
diff --git a/062array.mu b/062array.mu
index 95af1412..4369254a 100644
--- a/062array.mu
+++ b/062array.mu
@@ -14,26 +14,26 @@ scenario array-from-args [
 # create an array out of a list of scalar args
 recipe init-array [
   default-space:address:array:location <- new location:type, 30:literal
-  capacity:integer <- copy 0:literal
+  capacity:number <- copy 0:literal
   {
     # while read curr-value
     curr-value:location, exists?:boolean <- next-ingredient
     break-unless exists?:boolean
-    capacity:integer <- add capacity:integer, 1:literal
+    capacity:number <- add capacity:number, 1:literal
     loop
   }
-  result:address:array:location <- new location:type, capacity:integer
+  result:address:array:location <- new location:type, capacity:number
   rewind-ingredients
-  i:integer <- copy 0:literal
+  i:number <- copy 0:literal
   {
     # while read curr-value
-    done?:boolean <- greater-or-equal i:integer, capacity:integer
+    done?:boolean <- greater-or-equal i:number, capacity:number
     break-if done?:boolean
     curr-value:location, exists?:boolean <- next-ingredient
     assert exists?:boolean, [error in rewinding ingredients to init-array]
-    tmp:address:location <- index-address result:address:array:location/deref, i:integer
+    tmp:address:location <- index-address result:address:array:location/deref, i:number
     tmp:address:location/deref <- copy curr-value:location
-    i:integer <- add i:integer, 1:literal
+    i:number <- add i:number, 1:literal
     loop
   }
   reply result:address:array:location