On 13 Jan 2010, at 21:00, Rich Hickey wrote:
a bit of a pain. But even inside method definitions macros do not
seem to be
expanded. Any use of a macro inside a method leads to a compile-
time error
message. Is this intentional or just a temporary state?
Do you have a small example?
This one failed yesterday on my office computer, but now I tried it
again at home and it works fine:
(defmacro my= [x y] `(= ~x ~y))
(deftype Foo
[x]
Object
(equals [obj] (my= obj x)))
I'll check again on my office machine later today.
Konrad.
--
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