On Jul 21, 6:55 pm, Howard Lewis Ship <hls...@gmail.com> wrote: > It would be nice if (gen-class), when not in compile mode, would still > create a class in memory that could be referenced by class name > elsewhere in Clojure.
The gen-class function does nothing unless the *compile-files* var is true. So you should be able to do: (binding [*compile-files* true] (gen-class ...)) To generate classes at run-time. As others have mentioned, though, you can't redefine a named class in Java once it's been loaded. -SS --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---