This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
UnboundSymbol
- From: Chris Dean <ctdean at mercedsystems dot com>
- To: kawa at sources dot redhat dot com
- Date: Sun, 03 Nov 2002 11:34:28 -0800
- Subject: UnboundSymbol
I'm not sure if I'm using the correct vocabulary here, so bear with me.
How do I write a library (in Scheme), load in the symbols, and access
those symbols later?
For example, let's say I wanted to use the provided SRFI-1 library. My
application needs to load that library at the start, and use a function
defined in SRFI-1 later. I was hoping this would work:
public void someMethod() {
Scheme scm = new Scheme();
Environment env = scm.getNewEnvironment();
scm.eval( "(require 'srfi-1)", env );
// later ...
scm.eval( "filter", env );
}
But it doesn't. All my variations on this theme give me an
gnu.mapping.UnboundSymbol exception.
Can anyone provide me with some pointers on how I should approach this
problem? Thanks!
Regards,
Chris Dean