On Sun, Apr 24, 2011 at 7:48 AM, Andre van Tonder <[email protected]> wrote:
> What is the semantics of the following?
>
> (module (A)
>  (import (base))
>  (export n get-n)
>  (begin (define n 0))
>         (define (get-n) n))
>
> (import (base) (A))
> (set! n 42)
> (get-n)      ===> 42 or 0 ?
>
> In other words, is it the same binding?  (Alex, this links with our previous
> discussion about imports).

There is a ticket for this, but it's supposed to be an error.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
[email protected]
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports

Reply via email to