This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]