Hello all,

I want to name a function of mine "load" in my namespace home.a.  The
contents of a.clj (in the home directory in one of the root
directories of my CLASSPATH, as expected) is

(ns a
  (:refer clojure.core :exclude (load)))

(defn load [] 'value)

When I (use 'home.a) from the REPL, I get error message:

java.lang.Exception: Name conflict, can't def load because namespace:
com.benoithamelin.trunk.a refers to:#'clojure.core/load (a.clj:4)

I thought the :refer clause of the (ns) form would effectively remove
the clojure.core/load mapping to load within my namespace.  Is this a
bug?

Thank you,
Benoit
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to