Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Warn about breaking alaises in disable-unload/reload docstring

  • Loading branch information...
commit 37dae6b34983d513d7b7489e58b94c18f1da2fbb 1 parent 52aa183
Stuart Sierra authored March 19, 2013
8  src/main/clojure/clojure/tools/namespace/repl.clj
@@ -108,13 +108,17 @@
108 108
 (defn disable-unload!
109 109
   "Adds metadata to namespace (or *ns* if unspecified) telling
110 110
   'refresh' not to unload it. The namespace may still be reloaded, it
111  
-  just won't be removed first."
  111
+  just won't be removed first.
  112
+
  113
+  Warning: Aliases to reloaded namespaces will break."
112 114
   ([] (disable-unload! *ns*))
113 115
   ([namespace] (alter-meta! namespace assoc ::unload false)))
114 116
 
115 117
 (defn disable-reload!
116 118
   "Adds metadata to namespace (or *ns* if unspecified) telling
117  
-  'refresh' not to load it. Implies disable-unload! also."
  119
+  'refresh' not to load it. Implies disable-unload! also.
  120
+
  121
+  Warning: Aliases to reloaded namespaces will break."
118 122
   ([] (disable-reload! *ns*))
119 123
   ([namespace] (alter-meta! namespace assoc ::load false)))
120 124
 

0 notes on commit 37dae6b

Please sign in to comment.
Something went wrong with that request. Please try again.