diff options
Diffstat (limited to '043new.cc')
-rw-r--r-- | 043new.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/043new.cc b/043new.cc index 868910d5..3e256ca7 100644 --- a/043new.cc +++ b/043new.cc @@ -133,7 +133,7 @@ void ensure_space(long long int size) { % Memory[Memory_allocated_until] = 1; recipe main [ 1:address:number <- new number:type - 2:number <- copy 1:address:number/deref + 2:number <- copy 1:address:number/lookup ] +mem: storing 0 in location 2 @@ -225,7 +225,7 @@ case ABANDON: { raise << current_recipe_name() << ": first ingredient of 'abandon' should be an address, but got " << current_instruction().ingredients.at(0).original_string << '\n' << end(); break; } - reagent target_type = deref(types); + reagent target_type = lookup_memory(types); abandon(address, size_of(target_type)); break; } @@ -287,7 +287,7 @@ recipe main [ :(scenario new_string) recipe main [ 1:address:array:character <- new [abc def] - 2:character <- index 1:address:array:character/deref, 5 + 2:character <- index 1:address:array:character/lookup, 5 ] # number code for 'e' +mem: storing 101 in location 2 @@ -295,8 +295,8 @@ recipe main [ :(scenario new_string_handles_unicode) recipe main [ 1:address:array:character <- new [a«c] - 2:number <- length 1:address:array:character/deref - 3:character <- index 1:address:array:character/deref, 1 + 2:number <- length 1:address:array:character/lookup + 3:character <- index 1:address:array:character/lookup, 1 ] +mem: storing 3 in location 2 # unicode for '«' |