Most R6RS implementations allows multiple library definitions in a single
file.

I was unaware of that. How does it work? Presumably if importing
(name) sets off a search for files called "name.ss" etc. there would
be some limitations to defining a library in the same file as another.
But maybe you could define a library in the same file as a script
without much trouble - could you give a schema?


Program example:

(import (ironscheme)) ; non-standard (ikarus allows rnrs)

(library (foo)
 (export bar)
 (import (rnrs))
 (define bar 'bar))

(library (oof)
 (export baz)
 (import (rnrs) (foo))
 (define baz bar))

(import (oof))

(display baz)
(newline)


In this particular instance it's not helpful because I would be
relying on filename extension recognition, which (surely?) means
multiple files.


I guess so  :)



Reply via email to