Lol.You're correct - it's so easy i don't know why I didn't see it.
I'm somewhat new to macros.

That said - I thought my question was clearly stated:

How do I create a function and/or a macro that accepts an unbound
name and interprets that name as a symbol?

On Dec 17, 1:35 pm, Ken Wesson <kwess...@gmail.com> wrote:
> On Fri, Dec 17, 2010 at 3:26 PM, Trevor <tcr1...@gmail.com> wrote:
> > ahhh - thank you!
>
> > On Dec 17, 1:23 pm, Armando Blancas <armando_blan...@yahoo.com> wrote:
> >> > 2. I don't want to bind the name, I want to interpret the name as a
> >> > symbol
>
> >> user=> (defmacro perpetuate [name] `(let [q# (quote ~name)] (println
> >> q#) q#))
> >> #'user/perpetuate
> >> user=> (class (perpetuate somename))
> >> somename
> >> clojure.lang.Symbol
>
> Is *that* all you wanted? A version of (quote x) that printed out its
> argument as well as evaluating to a symbol? Well why didn't you just
> *say* so?

-- 
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

Reply via email to