[Scheme-reports] loading libraries Michael Montague (23 Oct 2013 18:34 UTC)
Re: [Scheme-reports] loading libraries John Cowan (23 Oct 2013 22:28 UTC)
Re: [Scheme-reports] loading libraries Alex Shinn (24 Oct 2013 01:13 UTC)
Re: [Scheme-reports] loading libraries Michael Montague (24 Oct 2013 04:33 UTC)
(missing)
Re: [Scheme-reports] loading libraries Michael Montague (24 Oct 2013 16:17 UTC)
Re: [Scheme-reports] loading libraries Alex Shinn (25 Oct 2013 00:44 UTC)

[Scheme-reports] loading libraries Michael Montague 23 Oct 2013 18:33 UTC

Given the follow libraries and program, based on my understanding of
R7RS, the following are all legal outputs from the program. Is this correct?

a b c d program
a b c a b d program
a b c b d program

(define-library (a)
     (import (scheme base))
     (import (scheme write))
     (begin (write 'a) (display #\ )))

(define-library (b)
     (import (scheme base))
     (import (scheme write))
     (import (a))
     (begin (write 'b) (display #\ )))

(define-library (c)
     (import (scheme base))
     (import (scheme write))
     (import (b))
     (begin (write 'c) (display #\ )))

(define-library (d)
     (import (scheme base))
     (import (scheme write))
     (import (b))
     (begin (write 'd) (display #\ )))

;; program
(import (scheme base))
(import (scheme write))
(import (c))
(import (d))

(write 'program) (newline)

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