[bugfix] identifier=?

This commit is contained in:
Yuichi Nishiwaki 2014-08-08 13:59:15 +09:00
parent 13eb47046e
commit 6533fc9b5b
1 changed files with 10 additions and 2 deletions

View File

@ -35,8 +35,16 @@
val))))
(define (identifier=? env1 sym1 env2 sym2)
(eq? (make-identifier sym1 env1)
(make-identifier sym2 env2)))
(define (resolve sym env)
(define x (make-identifier sym env))
(define y (make-identifier sym env))
(if (eq? x y)
x
sym)) ; resolved to no variable
(eq? (resolve sym1 env1)
(resolve sym2 env2)))
(define (make-syntactic-closure env free form)