about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-08 21:06:48 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-08 21:06:48 -0800
commit92e3f56ef967185f19522e698872ff61ef4ef284 (patch)
tree6413d1db97cb71b3aef2f9d29dd2c704a98d5b0c /030container.cc
parent1ad798a2cace11d799776850fb6ecbbe30f55a60 (diff)
downloadmu-92e3f56ef967185f19522e698872ff61ef4ef284.tar.gz
2403 - experiment: documenting non-assertions
Is that like a Maybe type in a type system? No it's more, it captures
the wistful longing of several hours spent trying to make an assertion
true. Not even by moving my phases relating to the types around could I
make this assertion true.
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index 186d6929..94310855 100644
--- a/030container.cc
+++ b/030container.cc
@@ -535,8 +535,8 @@ void check_or_set_invalid_types(const recipe_ordinal r) {
 }
 
 void check_or_set_invalid_types(type_tree* type, const string_tree* type_name, const string& block, const string& name) {
+  // can't assert that type_name is non-null, even at the top of a recursive call tree
   if (!type) return;  // will throw a more precise error elsewhere
-//?   cerr << "checking ";  dump_types(type, cerr);  cerr << '\n';
   // End Container Type Checks
   if (type->value == 0) {
     assert(!type->left && !type->right);