[R6RS] Scripts

dyb at cs.indiana.edu dyb at cs.indiana.edu
Wed Jul 19 13:52:34 EDT 2006


> That would also be OK with me.  If it helps, even identifying the name
> of the procedure within the module in the script header would be OK
> with me.

That would make me even happier, and it would allow multiple scripts
to be included in the same library.  How about:

   #! /usr/bin/env scheme-script <library-name> <script-name>

e.g.,

   #! /usr/bin/env scheme-script foo bar
   #!r6rs
   (library foo
     (import ---)
     (export bar)

     (define bar ---))

or

   #! /usr/bin/env scheme-script foo bar
   #!r6rs
   (library foo
     (import (only my-scripts bar))
     (export bar))

Kent



More information about the R6RS mailing list