You're not at fault here. The documentation about loading libraries is
still scarce and not very helpful yet. I too had to scramble to figure
this one out.

spit is in the duck-streams library in clojure.contrib. I understand
it is planned to be moved to the core library, as it should.

Here is how to use it:
1. Checkout clojure.contrib from its SVN and build the jar using ant.
Click "User contribs" in the upper right blue box in clojure.org to
get there. The address is in the "Source" tab.
2. Add the clojure-contrib.jar to the classpath. Same way as you added
clojure.jar.
3. The ad hoc way of loading the lib to the current namespace is: (use
'(clojure.contrib duck-streams)) This is discouraged.
4. The proper way to use it is in the ns macro:
(ns your-namespace
    (:use (clojure.contrib duck-streams)))
Note that there is no ' before your-namespace or (clojure.contrib...).

That's it. You've got spit.

Mibu

On Dec 28, 4:22 pm, Boyd Brown <boy...@gmail.com> wrote:
> Hello.  I can't seem to find 'spit'.
>
> java exception: unable to resolve symbol spit.
>
> I'm using Clojure Box rev1142.  Tried using the clojure.jar from the
> 20081217 release
> of Clojure but to no avail.
>
> spit is not documented on the clojure site API page like slurp is.  I
> can't
> find it in clojure core where slurp is.  Why would there be a slurp
> (read)
> but not a spit(write)?
>
> Obviously, I am doing something wrong.  Can anyone help me?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
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