From: Timothy J. H. <tim...@ma...> - 2004-05-19 04:57:01
|
The jscheme.JS class has been modified so that it allows multiple Independent JScheme instances. This requires a change to the way the JS class is used to call Scheme from Java. Many thanks to Toby Allsopp for this extension! Previously, JS defined static methods for evaluating expressions and calling procedures. All of those methods are now instance methods and you first need to construct an instance: JS js = new JS(); js.load(new java.io.File("app.init")); js.call("describe", this); ... or from Scheme (define js (jscheme.JS.)) (.eval js '(define z 5)) (.eval js '(+ z 1)) See the javadoc for jscheme.JS for more examples.... This should make it easier to build JScheme plugins for Eclipse and other IDEs If you run into any problems, please tell us right away so we can fix any bugs that may have been introduced by this fairly major change. Cheers, ---Tim--- |