• (ns-unalias ns sym)
Removes the alias for the symbol from the namespace.

1 Example top

  • ;; You are having a problem loading a redefined namespace:
    user=> (load "src/clj/com/tizra/layout_expander.clj")
    #<IllegalStateException java.lang.IllegalStateException: Alias xml already exists in namespace com.tizra.layout-expander, aliasing com.tizra.xml-match>
    ;; ns-unalias to the rescue!
    user=> (ns-unalias (find-ns 'com.tizra.layout-expander) 'xml)
    user=> (load "src/clj/com/tizra/layout_expander.clj")
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3804 top

(defn ns-unalias
  "Removes the alias for the symbol from the namespace."
  {:added "1.0"
   :static true}
  [ns sym]
  (.removeAlias (the-ns ns) sym))
Vars in clojure.core/ns-unalias:
Used in 0 other vars

Comments top

No comments for ns-unalias. Log in to add a comment.