Re: Opening packages using scheme

Andreas Bernauer <[email protected]> Thu, 5 Jan 2006 18:15:31 +0100
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
On 1/5/06, Gautham Anil <[email protected]> wrote:
> I need to find out how I can open packages opened using ,open such as
> ,open sockets etc. in the program itself.
>
> So a program could be something like
>
> (begin
>    (run-shell (,open sockets))
>    (run-shell (,open locks))
>    (run-shell (,open threads))
>    ....
> )

The easy way is to provide the package name on the command line:

scsh -o sockets -o locks -o threads
see also
http://www.scsh.net/docu/html/man-Z-H-12.html#node_sec_11.1.5

Another way is to use the package MODULE-SYSTEM in the s48 section of
sunterlib (http://savannah.nongnu.org/projects/sunterlib/). There is a
README file that contains a short docu.

The SUnet project uses this package in its SUrflet server.
http://sf.net/projects/sunet, see there the function
GET-SURFLET-RT-STRUCTURE in scheme/httpd/surflets/surflet-handler.scm

Yours,

Andreas.