Re: sc-compile and the environment

Matthias Radestock <[email protected]>
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Dan <[email protected]> writes:

>> So, in answer to your question: *nothing* from the
>> environment gets
>> serialised. If the source file you are compiling
>> contains a call to
>> require-library/extension then the code to make that
>> call, not the
>> result of it, will get serialised.
>
> Wait, so you're implying that it's not necessary to
> req-lib/ext all of a files' prerequisites before
> compiling it?

Correct.

> A little strange fact: when I compile
>
> (module mod ()
>   (display "Hello\n"))
>
> the string is not displayed. The greeting happens only
> when I req-ext the compiled file. Why? I thought
> compile-file executed the code.

When I stick the above in a file and run compile-file over it then
"Hello" *does* get displayed.


Matthias

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.