From: matthew g. <mgr...@co...> - 2004-05-22 12:48:25
|
Hi Tim, I would like to have multiple REPLs each with their own input, output, and error, yet share an Evaluator 'context'. In effect separating the R and the P from the E. Should or could this be accomplished by having separate instances of a jsint.Evaluator and then share the 'environment' between them? Would that be the 'correct way'? Thanks, any help would be appreciated. -matt grisius On May 19, 2004, at 12:56 AM, Timothy John Hickey wrote: > 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--- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |