On Dec 28, 9:33 am, Mibu <mibu.cloj...@gmail.com> wrote:
> 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
Thanks Mibu, it finds it now.
Boyd
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---