about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-01 16:25:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-01 16:25:25 -0700
commita6ce88d7ec5c952189e8d4df2819d4a6d5e7f395 (patch)
treec18da90230384100e0cdce86127aab206c8c8abe
parentb8515e8a0e88c6d1e2fcaea3e0e1d2f46c785f08 (diff)
downloadmu-a6ce88d7ec5c952189e8d4df2819d4a6d5e7f395.tar.gz
2229
-rw-r--r--021check_instruction.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 32317348..1ef58dfa 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -1,6 +1,12 @@
 //: Introduce a new transform to perform various checks in instructions before
 //: we start running them. It'll be extensible, so that we can add checks for
 //: new recipes as we extend 'run' to support them.
+//:
+//: Doing checking in a separate part complicates things, because the values
+//: of variables in memory and the processor (current_recipe_name,
+//: current_instruction) aren't available at checking time. If I had a more
+//: sophisticated layer system I'd introduce the simpler version first and
+//: transform it in a separate layer or set of layers.
 
 :(after "int main")
   Transform.push_back(check_instruction);