diff options
Diffstat (limited to '062array.mu')
-rw-r--r-- | 062array.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/062array.mu b/062array.mu index 4369254a..9f1a5824 100644 --- a/062array.mu +++ b/062array.mu @@ -1,6 +1,6 @@ scenario array-from-args [ run [ - 1:address:array:location <- init-array 0:literal, 1:literal, 2:literal + 1:address:array:location <- new-array 0:literal, 1:literal, 2:literal 2:array:location <- copy 1:address:array:location/deref ] memory-should-contain [ @@ -12,7 +12,7 @@ scenario array-from-args [ ] # create an array out of a list of scalar args -recipe init-array [ +recipe new-array [ default-space:address:array:location <- new location:type, 30:literal capacity:number <- copy 0:literal { @@ -30,7 +30,7 @@ recipe init-array [ 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] + assert exists?:boolean, [error in rewinding ingredients to new-array] tmp:address:location <- index-address result:address:array:location/deref, i:number tmp:address:location/deref <- copy curr-value:location i:number <- add i:number, 1:literal |