Ah, that'll do the trick! Thank you so much, Laurent. I should have
been able to figure that one out myself... Oh well!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send emai
Hi,
try
(defmacro req-> [[state msg] & body]
`(defmethod ~'do-request [Foo ~state ~msg]
[~'arg1 ~'arg2 ~(quote #^String arg3)]
~...@body))
HTH,
laurent
2009/4/21 Richard Newman :
>
> Hi folks,
>
> I'm attempting to define methods within the output of a macro. As
> these are definitio
Hi folks,
I'm attempting to define methods within the output of a macro. As
these are definitions for syntactic benefit more than anything else,
I'm using the unquote-quote trick for argument names, so that the
input body can refer anaphorically to known names (like "request").
Convention over co