about summary refs log tree commit diff stats
path: root/060immutable.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-04 19:22:09 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-04 19:22:09 -0800
commita70ce311134a98add10a2f7d4fe4919c3d64439b (patch)
tree4e1a47ed4ccad2881a489d6671f2d57ba2df5d8a /060immutable.cc
parent078f48f5e0749c94ad17465111b1f76eae41190a (diff)
downloadmu-a70ce311134a98add10a2f7d4fe4919c3d64439b.tar.gz
2728 - don't ignore /space: while checking types
Diffstat (limited to '060immutable.cc')
-rw-r--r--060immutable.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/060immutable.cc b/060immutable.cc
index d1b133c4..3017a6d0 100644
--- a/060immutable.cc
+++ b/060immutable.cc
@@ -251,7 +251,7 @@ recipe run-closure x:address:shared:number, s:address:shared:array:location [
   local-scope
   load-ingredients
   0:address:shared:array:location/names:new-closure <- copy s
-  *x/space:1 <- copy 34
+  *x:address:number/space:1 <- copy 34
 ]
 $error: 0
 
@@ -431,21 +431,6 @@ set<long long int> ingredient_indices(const instruction& inst, const set<reagent
   return result;
 }
 
-// reagent comparison just for this layer; assumes reagents are in the same recipe
-bool operator==(const reagent& a, const reagent& b) {
-  if (a.name != b.name) return false;
-  if (property(a, "space") != property(b, "space")) return false;
-  return true;
-}
-
-bool operator<(const reagent& a, const reagent& b) {
-  long long int aspace = 0, bspace = 0;
-  if (has_property(a, "space")) aspace = to_integer(property(a, "space")->value);
-  if (has_property(b, "space")) bspace = to_integer(property(b, "space")->value);
-  if (aspace != bspace) return aspace < bspace;
-  return a.name < b.name;
-}
-
 //: Sometimes you want to pass in two addresses, one pointing inside the
 //: other. For example, you want to delete a node from a linked list. You
 //: can't pass both pointers back out, because if a caller tries to make both