Extra libraries found in $pkglibdir can now be imported directly.

For example, (import (streams)) just works!
This commit is contained in:
Abdulaziz Ghuloum
2007-11-18 22:46:00 -05:00
parent 61fe1ce007
commit a7680d723d
7 changed files with 23 additions and 10 deletions
+8 -1
View File
@@ -3400,7 +3400,14 @@
(define (eval-binding x)
(let ((loc (car x)) (expr (cdr x)))
(cond
(loc (set-symbol-value! loc (eval-core (expanded->core expr))))
(loc (set-symbol-value! loc
(let ([g (gensym loc)])
(eval-core
(expanded->core
(build-application no-source
(build-lambda no-source
(list g) g)
(list expr)))))))
(else (eval-core (expanded->core expr))))))
(let ((rtc (make-collector))
(itc (make-collector))