you are mixing up the format for ns. If you want to use an alias for your library, use require, like this: (ns examples.core (:require [clarity.component :as c]))
;; you can call the function/macro make, by using the alias. (c/make :button "The Button") but if you don't want to use an alias and just introduce the vars from the library to your namespace, the use use: (ns examples.core (:use clarity.component)) (make :button "The Button") Notice that while using the form ns the internal calls to library like use,require,import,... are actually keywords and not actual calls to the forms use,require,import which you can use outside of the ns form. I don't know if I explained myself well. It's been a while since I dive into clojure, but I am coming back again. I would recommend clojuredocs [http://clojuredocs.org/clojure_core/clojure.core/ns] On Dec 13, 3:50 pm, jayvandal <[email protected]> wrote: > I think I understand namespace and then I don't! > I try to run this example > (ns examples.core > (use [clarity.component :as c])) > > (make :button "The Button") > I have programs stored in c:\projects\klarity.clj > I have clojure stored in c:\clojure-1.2.1\clojure-1.21. > I am running c:\cljr\clj-installer-jar > > I tried running > (ns clojure-1.2.1.clojure-1.2.1.src.clojure.core > (use [clarity.component :as c])) > > (make :button "The Button") > > What is namespace suposed to point to or access??? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
