[r6rs-discuss] [Formal] Add a multi-file library example

From: Trent Buck <trentbuck>
Date: Mon Nov 13 13:23:17 2006

On Mon, Nov 13, 2006 at 12:32:39PM -0500, MichaelL_at_frogware.com wrote:
> > Assuming read-xml and write-xml are libraries in the SSAX
> > superpackage, I would prefer
> >
> > (library (ssax (5 0))
> > (export (read-xml 5 0) (write-xml 5 0) ...)
> > (import r6rs)
> > ...)
>
> read-xml and write-xml were supposed to be examples of procedures exported
> by the ssax library.

Sorry, brain fart. I meant that

    (library (superlib (5 0))
           (import (sublib 5 0))
      ...)

would be more robust than

    (library (superlib (5 0))
           (import sublib)
      ...)

for the aforementioned reason.
-- 
Trent Buck, Student Errant
Received on Mon Nov 13 2006 - 13:22:33 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC