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]

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


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