diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-04-17 20:58:36 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-04-17 20:58:36 -0700 |
commit | 60cab88acec8c655346e5e4396ebfcb3a03b5b23 (patch) | |
tree | 2f8e007176061a6446a7968c8f53245f12824440 | |
parent | 568eb7328f62a4b3986e44b511dcb0fe9bd0fc03 (diff) | |
download | mu-60cab88acec8c655346e5e4396ebfcb3a03b5b23.tar.gz |
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.
-rw-r--r-- | shell/evaluate.mu | 2 |
1 files changed, 1 insertions, 1 deletions
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 |