Fix make-syntactic-closure

make-syntactic-closure raises an error when it takes identifiers.
The following session demonstrates the error.

> (define-macro a (sc-macro-transformer (lambda (form use-env) 'foo)))
#undefined
> (a)
error: attempted to set a non-object key '()' in a register
This commit is contained in:
Tokuno 2016-09-12 22:32:04 +09:00 committed by GitHub
parent 2a279f9d2e
commit a3c4dd32f8
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
((f (lambda (var)
(let loop ((free free))
(if (null? free)
(wrap free)
(wrap var)
(if (identifier=? var (car free))
var
(loop (cdr free))))))))