This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
environment problem still happening
- To: <kawa at sourceware dot cygnus dot com>
- Subject: environment problem still happening
- From: "Paul R. Potts" <potts at umich dot edu>
- Date: Mon, 27 Mar 2000 15:53:05 -0500
Thanks for the suggestion. It is still failing, but failing differently. If
I do this in my code:
Scheme.registerEnvironment();
Scheme myInterpreter = Scheme.getInstance();
myInterpreter . eval (
"(define (exclude lis exc) "+
"(if (null? lis) '() "+
"(if (not (member (car lis) exc)) "+
"(cons (car lis) (exclude (cdr lis) exc)) "+
"(exclude (cdr lis) exc))))" );
I get an unbound symbol exception thrown on "null?" instead of "if"
This seems to be basically a documentation issue, as in, I can't find
anything that explains how to set up an interpreter with an environment and
then use it during the lifetime of my program. All I know is that the
behavior has changed. I can read the source, but that is not ideal because
often evaluating a simple expression results in a big stack.
Paul