aboutsummaryrefslogtreecommitdiff
path: root/src/interp/compiler.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/compiler.boot')
-rw-r--r--src/interp/compiler.boot5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interp/compiler.boot b/src/interp/compiler.boot
index 550776b2..4eebd0b6 100644
--- a/src/interp/compiler.boot
+++ b/src/interp/compiler.boot
@@ -283,7 +283,8 @@ extractCodeAndConstructTriple(u, m, oldE) ==
compExpression: (%Form,%Mode,%Env) -> %Maybe %Triple
compExpression(x,m,e) ==
$insideExpressionIfTrue: local:= true
- atom first x and (fn:= GETL(first x,"SPECIAL")) =>
+ -- special forms have dedicated compilers.
+ (op := first x) and SYMBOLP op and (fn := GET(op,"SPECIAL")) =>
FUNCALL(fn,x,m,e)
compForm(x,m,e)
@@ -1702,4 +1703,4 @@ for x in [["|", :"compSuchthat"],_
["UnionCategory", :"compConstructorCategory"],_
["where", :"compWhere"],_
["[||]", :"compileQuasiquote"]] repeat
- MAKEPROP(car x, 'SPECIAL, cdr x)
+ MAKEPROP(first x, "SPECIAL", rest x)