On Mon, 15 Dec 2014 18:29:22 -0200, Ilya Obshadko
<ilya.obsha...@gmail.com> wrote:
How are Java objects usually passed to Clojure code? The recommended
way?
Java objects are passed to Clojure functions in exactly the same way they
are passed to Java method (because internally Clojure function is just an
implementation of IFn interface, and function call is invoke(...) on its
instance).
Now I was the one who hasn't made a clear question. :) I'm not asking
about how Clojure passes function arguments. I meant when you call Clojure
code from Java code, how do you pass a Java object so it can be used
inside Clojure code?
But I don't want to pass services to Clojure functions, I'd like to
inject them into Clojure namespace when clojure.core/require is executed.
Got it. I have no idea how to do that given my almost no knowledge of
Clojure. But I guess there's some way of doing that.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org