Re: Sourcing compiled modules
Peter Danenberg <[email protected]> Mon, 31 Mar 2008 19:18:44 -0500
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
> Hmm, and the contents of a.scm are fairly trivial? Could you email
> them to me so I can try to reproduce this?
See attached, Scott; I'm also using 1.17 alpha, if that's significant.
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="a.scm"
(module
a
(a)
(define a 2))
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Test.java"
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;
}
});
}
}
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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
--J/dobhs11T7y2rNN
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Sisc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisc-users
--J/dobhs11T7y2rNN--