:reload reloads the specified namespace

There is also :reload-all, which reloads the specified namespace as well as
all namespaces import'ed, use'd, and require'd in the specified namespace.

ex:

(require '[some.ns.foo :as foo] :reload-all)



On Mon, Jul 19, 2010 at 4:09 PM, Meikel Brandmeyer <m...@kotka.de> wrote:

> Hi,
>
> Am 19.07.2010 um 21:56 schrieb Peter Schuller:
>
> > To the limited extent that I've developed with Slime (and this goes
> > for both Common Lisp and clojure), one annoyance I have perceived is
> > de-normalization of the image/running repl. While having a running
> > live repl is great in many ways, when it comes specifically to
> > developing your "files on disk" code, I tend to want my testing
> > environment to be as normalized as possible with respect to my source
> > code. So for example, ideally the removal of a function from a
> > namespace in the code would be reflected when reloading/recompiling
> > that file.
>
> It seems it does that already:
>
> Clojure 1.2.0-master-SNAPSHOT
> user=> (require 'test.file2)
> WARNING: prn already refers to: #'clojure.core/prn in namespace:
> test.file2, being replaced by: #'test.file2/prn
> nil
> ; function prn is removed here from the file
> user=> (require :reload 'test.file2)
> nil
> user=> (test.file2/prn 5)
> java.lang.Exception: No such var: test.file2/prn (NO_SOURCE_FILE:4)
>
> I haven't tested what happens to the deftest stuff, but the „moving
> function“ could be addressed.
>
> Sincerely
> Meikel
>
> --
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

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