[armedbear-devel] Passing lisp objects from java to lisp
![](https://secure.gravatar.com/avatar/8426fd1e01564a36934e5c99ab49cb54.jpg?s=120&d=mm&r=g)
Greetings, If I have a lisp function as follows: (defun myfun (a b) (+ a b)) I want to be able to call it from lisp or java. In other words I don't want the lisp side to have to use jobject-lisp-value. Therefore, from the java side, how do I take a java object and translate into a lisp object so that when I call the execute method the lisp function doesn't need jobject-lisp-value? Thanks. Blake McBride
![](https://secure.gravatar.com/avatar/8426fd1e01564a36934e5c99ab49cb54.jpg?s=120&d=mm&r=g)
LispObject lispObject = JavaObject.getInstance(javaValue, true); On Sat, Jan 23, 2010 at 7:58 PM, Blake McBride <blake@mcbride.name> wrote:
Greetings,
If I have a lisp function as follows:
(defun myfun (a b) (+ a b))
I want to be able to call it from lisp or java. In other words I don't want the lisp side to have to use jobject-lisp-value.
Therefore, from the java side, how do I take a java object and translate into a lisp object so that when I call the execute method the lisp function doesn't need jobject-lisp-value?
Thanks.
Blake McBride
participants (1)
-
Blake McBride