Please forgive my mistake. I missed out a set of parentheses in there. It should be something like this:
(ns foo (:use (some.lib))) There are othe scenarios of different use cases: ;; see link for example http://github.com/technomancy/leiningen/blob/master/src/lancet.clj (ns foo (:use [some.lib :only (some-function)])) I guess I need to read a few more tutorials before I start trying things like that. On that note, are there any good tutorials for non-java/lisp and/or beginner programmers out there? Thanks. Ps: I am using clojure version 1.1.0. On Feb 25, 2:48 pm, Sean Devlin <francoisdev...@gmail.com> wrote: > What Clojure version are you using? > > On Feb 24, 4:17 pm, j1n3l0 <nelo.ony...@googlemail.com> wrote: > > > Hi all, > > > I'm not sure if this is the right place to raise this. I am new to > > clojure and was going through the docs for namespaces here: > > >http://richhickey.github.com/clojure/clojure.core-api.html#clojure.co... > > > In the example there it implies that the way to import functions into > > your namespace is as follows: > > > (ns foo > > (:use some.lib)) > > > In actuality you (at least I did) need to this to get this to load: > > > (ns foo > > (:use [some.lib])) > > > Is this correct? Could that possibly be clarified in the docs if so? > > If I am wrong could someone point me in the right direction for the > > correct usage. > > > 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 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