Sorry! Yes I missed the backqoute...

user=> (macroexpand-1 `(t "c" 0))
(def *c* 0)

On Sun, Nov 23, 2008 at 6:48 PM, Ralf Bensmann
<[EMAIL PROTECTED]>wrote:

> Just saw that macroexpand-1 doesn't work:
>
> user=> (defmacro t [n v] `(def ~(symbol (str "*" n "*")) ~v))
> nil
> user=> (t "bb" 0)
> #'user/*bb*
> user=> *bb*
> 0
> user=> (macroexpand-1 (t "c" 0))
> #'user/*c*
>
> Or am I missing something?
>
> -Ralf

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to