Sourcing compiled modules

Peter Danenberg <[email protected]> Sat, 29 Mar 2008 17:06:38 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Given a trivial module defined in a.scm, its compiled form a.scc, and a
driver Test.java; loading a.scc from Test throws the following error:

    Error in deserialize: got unexpected value sisc.exprs.EvalExp cannot
    be cast to sisc.data.Value

Loading the uncompiled version a.scm works fine; see attached.

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

_______________________________________________
Sisc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisc-users
Test.java (text/plain, 567 B)
import sisc.interpreter.Interpreter;
import sisc.interpreter.Context;
import sisc.interpreter.SchemeCaller;
import sisc.interpreter.SchemeException;

public class Test {
    public static void main(String[] argv) {
        try {
            Context.execute(new SchemeCaller() {
                    public Object execute(Interpreter r) {
                        return r.loadSourceFiles
                            (new String[] { "a.scc" });
                    }
                });
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}
a.scm (text/plain, 31 B)
(module
 a
 (a)
 (define a 2))