about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-04 00:50:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-04 00:50:02 -0800
commitf343a9212d93f70018e84c0eb5a537e30a49b3f0 (patch)
treea92b4e7c6757b38869c7ffa4ba16c510d42e3bb4
parent7b8a2ff32ef66a7f9187384adc322a99e8bcc332 (diff)
downloadmu-f343a9212d93f70018e84c0eb5a537e30a49b3f0.tar.gz
2726
-rw-r--r--060immutable.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/060immutable.cc b/060immutable.cc
index b715bec2..052fafd9 100644
--- a/060immutable.cc
+++ b/060immutable.cc
@@ -238,9 +238,10 @@ Transform.push_back(check_immutable_ingredients);  // idempotent
 
 :(code)
 void check_immutable_ingredients(recipe_ordinal r) {
-  // to ensure a reagent isn't modified, it suffices to show that we never
-  // call get-address or index-address with it, and that any non-primitive
-  // recipe calls in the body aren't returning it as a product.
+  // to ensure an address reagent isn't modified, it suffices to show that
+  //   a) we never write to its contents directly,
+  //   b) we never call get-address or index-address with it, and
+  //   c) any non-primitive recipe calls in the body aren't returning it as a product
   const recipe& caller = get(Recipe, r);
   trace(9991, "transform") << "--- check mutability of ingredients in recipe " << caller.name << end();
   if (!caller.has_header) return;  // skip check for old-style recipes calling next-ingredient directly