[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scheme-reports] loading libraries



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@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports