scsh-users
[Top] [All Lists]

Modules

To: <scsh-news@zurich.ai.mit.edu>
Subject: Modules
From: pax! <pax@dedalo.ws>
Date: Sun, 8 Dec 2002 04:08:44 +0100
Hello.

 I'm trying to write a small application for making sysadmin with
scsh. I'm almost getting mad with a problem about modules.

As a part of the system I've written a script which starts a set of
tests. This is a driver (like DejaGNU runtest). It's only purpose in
life is loading test modules, executing them and taking account of
test passed and failed. Each test module loaded contains a structure
to the functions to be tested.

My problem comes when I call, for example, (load "mytestfile.scm")
from the driver script. In mytestfile I define a structure. At run
time I get an error that says "define-structure" in "mytestfile.scm" is
undefined. My question is: how can I enter the user package in
"mytestfile.scm" to use define-structure?

Thank you

-- 
+-----------------
| 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>