On Fri, 2009-05-01 at 10:14 +0200, leppie wrote: > > >> 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)
I thought you were talking about auto-loading, via the search paths, libraries from files containing multiple libraries, which I believe Larceny is the only system which does. -- : Derick ----------------------------------------------------------------
