This is the mail archive of the kawa@sourceware.org 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]

calling scheme from java


Hello!

Is it possible to call Scheme functions from Java so that I can pass Java
objects as arguments to the function?  Evaluating a Scheme expression using
Scheme.eval() won't work because there's no way to pass a Java object
through a string containing a Scheme expression.  

For example, suppose I have a function defined like this:

(define (my-func collection :: <java.util.Collection>)
  ... do something with collection ...  )

I would like to call my-func from Java and pass it a Collection instance.

--DaveH		"Be Excellent to each other!"


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