paameterize in read-and-compile
authorAndy Wingo <wingo@pobox.com>
Tue, 22 Jan 2013 14:40:08 +0000 (15:40 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 22 Jan 2013 14:40:08 +0000 (15:40 +0100)
* module/system/base/compile.scm (read-and-compile): Use
  current-language parameter.

module/system/base/compile.scm

index f92ca7d..f3e4641 100644 (file)
   (let ((from (ensure-language from))
         (to (ensure-language to)))
     (let ((joint (find-language-joint from to)))
-      (with-fluids ((*current-language* from))
+      (parameterize ((current-language from))
         (let lp ((exps '()) (env #f) (cenv env))
           (let ((x (read-and-parse (current-language) port cenv)))
             (cond