How about something like this? user=> (ns fun) fun=> (defn myfun [] 1) fun=> (defn myfun2 [] 1) fun=> (keys (ns-publics 'fun)) (myfun myfun2)
fun=> (doseq [s (keys (ns-publics 'fun))] (ns-unmap 'fun s)) fun=> (myfun) java.lang.Exception: Unable to resolve symbol: myfun in this context (NO_SOURCE_FILE:19) On Aug 29, 1:55 pm, Vagif Verdi <vagif.ve...@gmail.com> wrote: > I often refactor my code and move some functions to new modules. > Unfortunately i cannot load them, because clojure says that function > with such name is already loaded from another namespace. I could not > find nothing better but to close my clojure session (which means bring > down the web server) and start it back again. > > Is there a way to unregister some names from a namespace without > reloading it ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---