[R6RS] Scripts and toplevel code

dyb at cs.indiana.edu dyb at cs.indiana.edu
Wed Aug 16 17:23:57 EDT 2006

> #!/usr/bin/env scheme-script
> #!r6rs
> (script <identifier>
>   (import ...)
>   <library body>)
> where <identifier> names the entry point.  Change it into a library by
> changing "script" to "library", replacing <identifier> with the name
> of the library and adding an export clause.  This can be done with an
> editor macro.

It's a shame this can't be converted to a library form via a Scheme


More information about the R6RS mailing list