Re: Sourcing compiled modules
Peter Danenberg <[email protected]> Sun, 30 Mar 2008 14:14:38 -0500
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
> Yes, you need to use the Scheme level "load" function.
Thanks, Scott; I had thought of that, too, and it turns out that I can
replicate the behaviour by calling LOAD:
import java.io.IOException;
import sisc.interpreter.Interpreter;
import sisc.interpreter.Context;
import sisc.interpreter.SchemeCaller;
import sisc.interpreter.SchemeException;
import sisc.util.Util;
import sisc.data.Value;
import sisc.data.SchemeString;
import sisc.data.Procedure;
public class Test {
public static void main(String[] argv)
throws SchemeException, IOException {
Context.execute(new SchemeCaller() {
public Object execute(Interpreter r)
throws SchemeException {
try {
return r.eval("(load \"a.scc\")");
} catch (Throwable e) {
e.printStackTrace();
}
return null;
}
});
}
}
LOAD similarly produces the error message:
Error in deserialize: got unexpected value sisc.exprs.EvalExp
cannot be cast to sisc.data.Value
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace