2009/7/10 Rowdy Rednose <rowdy.redn...@gmx.net>:
>
> The idea is to have all existing code (that gets recompiled after my
> redefinition) benefit from my changes automatically, although I fear
> it's not considered good style to do this.

Ah.  Well, I've just tried:

(in-ns 'clojure.core)
(def old-dosync dosync)

but it doesn't work:
java.lang.Exception: Can't take value of a macro:
#'clojure.core/dosync (NO_SOURCE_FILE:3)

so I don't know how you would redefine the old one while still being
able to refer to the new one without using another namespace.  I
suspect I'm just using insufficient imagination.

-- 
Michael Wood <esiot...@gmail.com>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to