Re: compile dynamic ns ?

2012-04-15 Thread Stuart Sierra
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

Re: compile dynamic ns ?

2012-04-15 Thread Marshall T. Vandegrift
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`:

compile dynamic ns ?

2012-04-13 Thread ollem
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