[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scheme-reports] Toplevel import scoping



What does the following program print?  In other words, what does IMPORT do 
when redefining existing bindings?

(module (foo)
   (export (x)
   (begin
     (define x 1)))

TOPLEVEL:

(define x 0)
(define (get-x) x)
(import (foo))
(display x)              ==> 1
(display (get-x))        ==> WHICH WILL IT BE?

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports