Thank you.

The following statement worked for me:
(:require [clojure.contrib.duck-streams :as d])

As I was using slurp and slurp*, I then had to do the following:

use the form "d/slurp*" instead (prefixed with d/)
use "slurp" without a change

This brings up a related point - I can see that there are functions with the
same name in different packages, which I believe it's quite unfortunate.
There is slurp in clojure.core and there is duck-streams/slurp* , along with
other functions such as spit...

I hope this kind of things might be addressed in future versions of
Clojure...

On Mon, Oct 25, 2010 at 10:25 PM, Michael Ossareh <ossa...@gmail.com> wrote:

>
>
> On Mon, Oct 25, 2010 at 19:09, Victor Olteanu <bluestar...@gmail.com>wrote:
>>
>>  java.lang.IllegalStateException: spit already refers to:
>> #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.clj:1)
>>
>
> Hi Victor,
>
> I solved this issue by using (require) instead of (use). i.e.
>
> (ns myapp
>  (require [other-ns :as ns]))
>
> Then whenever you access a function in the other-ns you prefix it with
> ns/function.
>
> There may be other ways to solve this though.
>
> --
> 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