about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-15 17:33:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-15 17:33:52 -0800
commitc1123445f7061a8922f792d22b12daa4cd2874db (patch)
treef307181b0e30693cb49f791500e6b78a7fd4fc1e
parentd2bd40bfcb995fecb947035b0c896342ca22cdd6 (diff)
downloadmu-c1123445f7061a8922f792d22b12daa4cd2874db.tar.gz
2448
-rw-r--r--021check_instruction.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 15d14afc..57757446 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -73,6 +73,8 @@ recipe main [
 +error: main: can't copy 34 to 1:address:number; types don't match
 
 :(code)
+// copy arguments because later layers will want to make changes to them
+// without perturbing the caller
 bool types_match(reagent lhs, reagent rhs) {
   // '_' never raises type error
   if (is_dummy(lhs)) return true;