Thanks for the pointers you guys. I changed my code to this:

(ns test.core
  (:use [clojure.contrib.seq :only (indexed)]))

... (indexed being the function that I was interested in) and it now works
ok. I can reload the file as many times as I like.

I must confess that I am rather confused by all this. When I was loading in
the whole of clojure.contrib.seq-utils, it was perfectly possible to load
partition-by once (albeit with a warning) but trying to reload the source
file, causing partition-by to be loaded a second time, failed. Does that
sound right?

Cheers,

Chris


On 30 August 2010 20:31, Phil Hagelberg <p...@hagelb.org> wrote:

> On Mon, Aug 30, 2010 at 3:05 AM, Robert McIntyre <r...@mit.edu> wrote:
> > Yeah, they changed that from clojure 1.1 and it's really annoying ---
> > as far as I know, your only options right now are to either select
> > exactly which functions
> > from seq-utils you want using the :only keyword, or if you really want
> > to use the seq-utils version
> > you can use refer-clojure and the :exclude keyword. Or, you can use
> > the :as keyword in the :use form
> > to qualify the import so that you don't actually replace anything.
>
> Actually this namespace was only kept around for
> backwards-compatibility. If you use the new clojure.contrib.seq
> namespace it won't have these issues. Unfortunately while Clojure
> itself had a nice set of release notes documenting these changes, I
> couldn't find one for contrib.
>
> -Phil
>
> --
> 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
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to