Permalink
Browse files

Warn about breaking alaises in disable-unload/reload docstring

  • Loading branch information...
1 parent 52aa183 commit 37dae6b34983d513d7b7489e58b94c18f1da2fbb @stuartsierra stuartsierra committed Mar 19, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/main/clojure/clojure/tools/namespace/repl.clj
@@ -108,13 +108,17 @@
(defn disable-unload!
"Adds metadata to namespace (or *ns* if unspecified) telling
'refresh' not to unload it. The namespace may still be reloaded, it
- just won't be removed first."
+ just won't be removed first.
+
+ Warning: Aliases to reloaded namespaces will break."
([] (disable-unload! *ns*))
([namespace] (alter-meta! namespace assoc ::unload false)))
(defn disable-reload!
"Adds metadata to namespace (or *ns* if unspecified) telling
- 'refresh' not to load it. Implies disable-unload! also."
+ 'refresh' not to load it. Implies disable-unload! also.
+
+ Warning: Aliases to reloaded namespaces will break."
([] (disable-reload! *ns*))
([namespace] (alter-meta! namespace assoc ::load false)))

0 comments on commit 37dae6b

Please sign in to comment.