From 60cab88acec8c655346e5e4396ebfcb3a03b5b23 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Apr 2021 20:58:36 -0700 Subject: [PATCH] evaluating fns is too similar to its input When I edit disk images directly, it's easy to forget a pair of parens. Then the first expression of the body never executes. --- shell/evaluate.mu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/evaluate.mu b/shell/evaluate.mu index 8c8bf933..170a1713 100644 --- a/shell/evaluate.mu +++ b/shell/evaluate.mu @@ -59,7 +59,7 @@ fn evaluate _in: (addr handle cell), out: (addr handle cell), env-h: (handle cel } # in-addr is a syntax tree $evaluate:anonymous-function: { - # trees starting with "fn" are anonymous functions and therefore literals + # trees starting with "fn" are anonymous functions var expr/esi: (addr cell) <- copy in-addr # if its first elem is not "fn", break var in-addr/edx: (addr cell) <- copy in-addr