[Scheme-reports] DELAY AND FORCE Andre van Tonder (23 Apr 2011 22:20 UTC)
[Scheme-reports] Regions of imports unspecified Andre van Tonder (23 Apr 2011 22:31 UTC)
Re: [Scheme-reports] Regions of imports unspecified John Cowan (23 Apr 2011 22:43 UTC)
Re: [Scheme-reports] Regions of imports unspecified Alex Shinn (24 Apr 2011 01:59 UTC)
[Scheme-reports] What are regions of toplevel imports? Andre van Tonder (23 Apr 2011 23:41 UTC)
[Scheme-reports] Internal syntax definition order problem Andre van Tonder (23 Apr 2011 22:39 UTC)
[Scheme-reports] Mutable exports Andre van Tonder (23 Apr 2011 22:48 UTC)
Re: [Scheme-reports] Mutable exports Alex Shinn (24 Apr 2011 02:00 UTC)
[Scheme-reports] Internal definition shadowing problems Andre van Tonder (23 Apr 2011 23:19 UTC)
[Scheme-reports] Importing identifier more than once Andre van Tonder (23 Apr 2011 23:37 UTC)

Re: [Scheme-reports] Mutable exports Alex Shinn 24 Apr 2011 02:00 UTC

On Sun, Apr 24, 2011 at 7:48 AM, Andre van Tonder <andre@het.brown.edu> 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
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports