The :reload directive re-evaluated the namespace, but does not remove any
existing definitions, or reload any dependent namespaces. This may be the
cause of your "strange results".

The tools.namespace library
<https://github.com/clojure/tools.namespace> contains
a "refresh" function that will clear and reload your namespaces from
scratch. This doesn't take into account things like background threads, but
is generally more reliable that the :reload directive when working in a
REPL.

- James


On 28 February 2015 at 14:25, Cecil Westerhof <cldwester...@gmail.com>
wrote:

> I discovered:
>     (require 'project.core :reload)
>
> Very handy indeed and a big time saver. But it does not always work
> correctly. At a certain moment I got strange results. An exit and a new
> 'lein repl' solved the problems.
>
> --
> Cecil Westerhof
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to