[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] Mutable exports
- To: Alex Shinn <alexshinn@x>
- Subject: [Scheme-reports] Mutable exports
- From: Andre van Tonder <andre@x>
- Date: Sat, 23 Apr 2011 18:48:15 -0400 (EDT)
- Cc: scheme-reports@x
- In-reply-to: <BANLkTik2QF-u=58SLtQDTTWnx6htQxhqXA@mail.gmail.com>
- References: <BANLkTi=hSfKrHo13BUMP==SNPCX-+As0HQ@mail.gmail.com> <BANLkTi=kSqWZpF-fAPObreiuAf9FxPb85w@mail.gmail.com> <BANLkTik2QF-u=58SLtQDTTWnx6htQxhqXA@mail.gmail.com>
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).
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports