Re: defmacro/gen-class/annotation woes

178 views
Skip to first unread message

Meikel Brandmeyer (kotarak)

unread,
Feb 28, 2013, 1:52:05 AM2/28/13
to clo...@googlegroups.com
Hi,

just a wild guess: quote the annotation in the macro. (with-meta name `{Deprecated true}). Note the backtick.

Kind regards
Meikel

Meikel Brandmeyer

unread,
Feb 28, 2013, 2:21:57 AM2/28/13
to clo...@googlegroups.com
Hi,

if you want to avoid reflection in macro-generated code you have to quote the class because the compiler expects the classname and not the class itself. I figured it could be similar here.

Kind regards
Meikel

Michael Willis

unread,
Feb 28, 2013, 9:46:08 AM2/28/13
to clo...@googlegroups.com
Hi Meikel!

Thanks for the suggestion.  I'll second what Paul said, I'm not sure if I would ever have guessed to syntax quote the metadata map.  I just tested it and it works like magic.

Cheers,
Michael Willis
Reply all
Reply to author
Forward
0 new messages