Hi,

On 15 Mrz., 08:17, Dominikus <dominikus.herzb...@gmail.com> wrote:

> Interestingly, macroexpand does not work on your qqq-macro either:
>
> user=> (macroexpand '((qqq) (even? 42) "boo!"))
> ((qqq) (even? 42) "boo!")
>
> That's weird.

You can't return macros as values.

user=> (defmacro foo [x y] `(println ~x ~y))
#'user/foo
user=> (defmacro bar [] `foo)
#'user/bar
user=> ((bar) "yoyo" "dyne")
java.lang.Exception: Can't take value of a macro: #'user/foo
(NO_SOURCE_FILE:10)

Sincerely
Meikel

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