user=> (defn repeat [x] x) java.lang.Exception: Name conflict, can't def repeat because namespace: user refers to:#'clojure.core/repeat (NO_SOURCE_FILE:1) user=> (ns my.ns (:refer-clojure :exclude [repeat])) nil my.ns=> (defn repeat [x] x) #'my.ns/repeat
On Apr 29, 6:08 pm, gary ng <[email protected]> wrote: > Clojure 1.2.0-master-SNAPSHOT > user=> (use `clojure.contrib.string) > java.lang.IllegalStateException: repeat already refers to: > #'clojure.core/repeat > in namespace: user (NO_SOURCE_FILE:0) > > By going through the source, I see c.c.s deliberately exclude certain > symbols but don't know how to do it in the REPL. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
