prhlava a écrit : > But what would be really cool, if I could distribute clojure code in > the source form, load it into a java appliation _and_ call the clojure > code (which got compiled on the fly when loaded) from java. But maybe > the nature of > the java language does not permit this. >
clojure.lang.RT.load("my/script.clj") ; your script must be on the classpath clojure.lang.RT.var("my.ns", "my-var").invoke("hello") ; to call a function -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---