about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-28 15:03:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-28 15:03:46 -0700
commit286ca5a4e85c2c3d4e5bd5e303990188a727131c (patch)
tree5157820360fdd44397954aa35a96d46e9dba03f5 /043new.cc
parentbc6436927640603675e2e700007f53c5ab213869 (diff)
downloadmu-286ca5a4e85c2c3d4e5bd5e303990188a727131c.tar.gz
1869 - rename the /deref property to /lookup
Should be a little bit more mnemonic.
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc10
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 '«'