Michael Sperber [Mr. Preprocessor] writes:
> LOAD loads into INTERACTION-ENVIRONMENT, not into the PROGRAM
> package. Using LOAD in conjunction with the module system without
> explicitly specifying which package to load into is bound to get you
> into trouble.
You are right. The sample code was crippled. Changing the export
declaration to:
(export main (foo :syntax))
solved the problem.
On the other end I don't understand why the compiled version behaved
differently from the interpreted version.
While at this, would you mind to explain how to load in a different
package other than the interaction-environment? Load accepts a second
argument that is supposed to be an environment but, beside the R5RS
environment primitives nothing is documented. So, how do you get the
current package's environment?
Cheers,
--
walter pelissero
http://www.pelissero.org
|