>>>>> "pax" == pax! <firstname.lastname@example.org> writes:
pax> I'm trying to write a small application for making sysadmin with
pax> scsh. I'm almost getting mad with a problem about modules.
pax> As a part of the system I've written a script which starts a set of
pax> tests. This is a driver (like DejaGNU runtest). It's only purpose in
pax> life is loading test modules, executing them and taking account of
pax> test passed and failed. Each test module loaded contains a structure
pax> to the functions to be tested.
pax> My problem comes when I call, for example, (load "mytestfile.scm")
pax> from the driver script. In mytestfile I define a structure. At run
pax> time I get an error that says "define-structure" in "mytestfile.scm" is
pax> undefined. My question is: how can I enter the user package in
pax> "mytestfile.scm" to use define-structure?
This is because the module system lives in a different world from your
ordinary forms. The right thing for you to do is to also put your
driver into module form, and just OPEN the structures you depend on.
Load the module declarations either via
,config ,load <module-code.scm>
in the REPL or via the -lm command-line switch. Details are in
Chapter 11 of the scsh manual.
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla