This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project. See the Kawa home page for more information.
> I'm having trouble with load and environments when calling an interpreter > from Java. Hm. It works for me. I put this in in foo.scm: (define (xxx x) (list "x" x 'x)) and then did: public static void main(String args[]) { Scheme interp = new Scheme(); String initfile = "/home/bothner/foo.scm"; interp.eval("(load \"" + initfile + "\")"); interp.eval("(display (xxx 10))(newline)"); } When I ran it, the following was printed: (x 10 x) Are you using a recent snapshot? [By the way - please keep your lines shorter than 70 characters.] --Per Bothner Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner