about summary refs log tree commit diff stats
path: root/036call_reply.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-28 18:19:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-28 18:26:05 -0700
commit70f70118f468b51ac14b7e992b0ec941c3a50d4d (patch)
tree07749a54af09d9bfbeb93b7b52dc4a175ed6a886 /036call_reply.cc
parentb69daf785df8dee56f851ce9d6dd38d7779a04ca (diff)
downloadmu-70f70118f468b51ac14b7e992b0ec941c3a50d4d.tar.gz
2306 - recipe headers
Once a student has gotten used to recipes and ingredients using the
staged 'next-ingredient' approach there's no reason to avoid
conventional function headers. As an added bonus we can now:

a) check that all 'reply' instructions in a recipe are consistent
b) deduce what to reply without needing to say so everytime
c) start thinking about type parameters for recipes (generic functions!)
Diffstat (limited to '036call_reply.cc')
-rw-r--r--036call_reply.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/036call_reply.cc b/036call_reply.cc
index 8a4653ca..4f96a38b 100644
--- a/036call_reply.cc
+++ b/036call_reply.cc
@@ -165,7 +165,7 @@ recipe test1 [
 ]
 +mem: storing 34 in location 1
 
-:(before "End Rewrite Instruction(curr)")
+:(before "End Rewrite Instruction(curr, recipe result)")
 // rewrite `reply-if a, b, c, ...` to
 //   ```
 //   jump-unless a, 1:offset