On Jan 23, 2009, at 7:56 PM, e wrote:



        (ns my-ns
           (:use [clojure.set :exclude (difference)]
                    [clojure.contrib.set :only (difference)]))

Did you have to say ":exclude" or does the last thing override?

I had to say :exclude. :use makes a call to refer which will refuse to replace an existing entry in ns-map. You can see an example of this in a fresh repl:

        user=> (use 'clojure.zip)
java.lang.IllegalStateException: replace already refers to: #'clojure.core/replace in namespace: user (NO_SOURCE_FILE:0)
        user=>

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to