scsh-users
[Top] [All Lists]

Re: Modules

To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Subject: Re: Modules
From: pax! <pax@dedalo.ws>
Date: Sun, 8 Dec 2002 17:28:33 +0100
Cc: <scsh-news@zurich.ai.mit.edu>
>>>>> "sperber" == Michael Sperber <sperber@informatik.uni-tuebingen.de> writes:

>>>>> "pax" == pax!  <pax@dedalo.ws> writes:

sperber> ,config ,load <module-code.scm>

sperber> in the REPL or via the -lm command-line switch.  Details
sperber> are in Chapter 11 of the scsh manual.

But for this case none of these are a good solution, because neither I
want to execute this interactively, nor are these test modules
executables by themselves. I need to programmatically load the configure
package definitions to define new structures in modules that aren't
executable scripts by themselves, but libraries of functions.

I guess I need something like:

    (load-package "configuration")
    (define-structure foo (export bar) (begin....))

Or maybe, from driver code:

    (load-configuration "module-definition.scm")

And then, in module code:

    (define-structure foo (export bar) (begin ....))

Saludos

-- 
+-----------------
| Francisco Vides Fernández <pvides@dedalo.ws>
| Director técnico.
| Teléfono fijo:   952 60 29 59
| Teléfono móvil:  661 67 32 73
| Fax:             952 60 29 59
| Dédalo Ingenieros http://www.dedalo.ws/
| PGP: http://pgp.rediris.es:11371/pks/lookup?op=index&search=0x605ecbab
+------



<Prev in Thread] Current Thread [Next in Thread>