This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
new Scheme()
- From: Dean Ferreyra <dferreyra at igc dot org>
- To: kawa at sources dot redhat dot com
- Date: Thu, 31 Mar 2005 18:56:49 -0800
- Subject: new Scheme()
Hello,
Up until recently this kind of construct worked for us:
public class Env {
public static void main(String[] strings) {
kawa.standard.Scheme.registerEnvironment();
kawa.standard.Scheme scm = new kawa.standard.Scheme();
scm.eval( "(require 'srfi-1)" );
// ...
}
}
but with the latest CVS pull I get a null pointer exception on the
eval(). Adding a call to this:
scm.setEnvironment(scm.getNewEnvironment());
before the eval() seems to be the fix.
Is this right?
Dean