I have the following function that I am using to fully qualify symbols in a 
macro:

(defn qualify
     "Convert a symbol to a qualified symbol.  If the
symbol does not already refer to an existing var,
default to the current namespace."
     [sym]
     (let [res (resolve sym)
           ns (or (and res (-> res (meta) (:ns) (.name) (name)))
                  (-> *ns* (.name) (name)))
           
           nme (name sym)]
       (symbol ns nme)))


I would like to know how to convert this so that it can be called from within a 
clojurescript macro.  I know that all cljs macros must actually be written in 
clj.  How do I access this kind of information when compiling cljs?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to