Re: refer-clojure does not prevent namespace conflicts

2011-04-12 Thread Meikel Brandmeyer
Hi, On 12 Apr., 13:58, limux wrote: > Yeah, I see, thanks for your very wonderful replies. > Clojursql does not conflict with clojure.core throung refer-clojure > with exclude to make its own distinct work well. In my myoa.core, I > refer clojure.core and clojureql which lead to conflict, becaus

Re: refer-clojure does not prevent namespace conflicts

2011-04-12 Thread limux
Yeah, I see, thanks for your very wonderful replies. Clojursql does not conflict with clojure.core throung refer-clojure with exclude to make its own distinct work well. In my myoa.core, I refer clojure.core and clojureql which lead to conflict, because I refer clojureql in a normal way instead of

Re: refer-clojure does not prevent namespace conflicts

2011-04-11 Thread Meikel Brandmeyer
Hi, On 11 Apr., 16:29, limux wrote: > Why some warning of conflit be reported in the cmd of win when > the lein run myoa/core.clj? and when I refresh the browser the system > will failed with lots of error messsage? The conflict is not in clojureql, but your namespace. You probably ":use" cloju

Re: refer-clojure does not prevent namespace conflicts

2011-04-11 Thread limux
First , very thanks for you reply and very detailed explaining about "refer". in fact refer-clojure is variant of (refer 'clojure.core). what clojureql does is refer clojure exclude distinct, conj and etc, and redefine a itself version of distinct in which refer clojure/distinct. you can read it's

Re: refer-clojure does not prevent namespace conflicts

2011-04-10 Thread Meikel Brandmeyer
Hi, Am 10.04.2011 um 14:37 schrieb limux: > java.lang.IllegalStateException: distinct already refers to: > #'clojureql.core/distinct in namespace: myoa.core (core.clj:1). but in > clojureql/core.clj has already (:refer-clojure > :exclude [take drop sort distinct conj! disj! compile case]). Wha

Re: refer-clojure does not prevent namespace conflicts

2011-04-10 Thread Stuart Halloway
Odds are your namespace conflict is not in your core.clj, but in somebody who uses core.clj, e.g. the REPL. Stu Clojure/core http://clojure.com > I use compojure, hiccup and clojureql to study web development, in my > myoa project's core.clj, require clojureql with cause > java.lang.IllegalStat

refer-clojure does not prevent namespace conflicts

2011-04-10 Thread limux
I use compojure, hiccup and clojureql to study web development, in my myoa project's core.clj, require clojureql with cause java.lang.IllegalStateException: distinct already refers to: #'clojureql.core/distinct in namespace: myoa.core (core.clj:1). but in clojureql/core.clj has already (:refer-cloj