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
[email protected]
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports
