Hi Olle,
gen-class only operates when *compile-files* is true, which happens when
you call `compile`, which in turn calls `require`, which looks for .clj
files on disk.
Clojure doesn't currently support generating Java classes dynamically, but
you could hack the compiler to allow it.
-Stuart
Stuart Sierra the.stuart.sie...@gmail.com writes:
Clojure doesn't currently support generating Java classes dynamically,
but you could hack the compiler to allow it.
And if you don't feel like doing it yourself, check out shady and
`shady.gen-class/gen-class`:
Hi,
I want to create and compile java classes on the fly using clojure.
I also want to pack the compiled result in a jar file to be used by
another system.
I have used JavaAssist before but thought that it could be kind of
neat to use clojure instead.
I have ran into a problem though:
(defn