Detailed Macro Quoting Question

2011-06-18 Thread Jian Liu
Hi Clojure Gurus :) I've a somewhat contrived use-case for macros that I've been struggling with. Let's say there's an interface called EWrapper that I'm trying to implement with methods tickPrice and tickSize, a concrete class EWrapperMsgGenerator that has methods with those names that return

Re: Detailed Macro Quoting Question

2011-06-18 Thread Jian Liu
. Thanks, Jian On Jun 18, 10:52 am, David Nolen dnolen.li...@gmail.com wrote: On Fri, Jun 17, 2011 at 11:51 PM, Jian Liu liuj...@gmail.com wrote: Hi Clojure Gurus :) I've a somewhat contrived use-case for macros that I've been struggling with. Let's say there's an interface called EWrapper

Re: Detailed Macro Quoting Question

2011-06-18 Thread Jian Liu
memfn work? E.g. something like (apply (memfn tickPrice) EWrapperMsgGenerator args)? Or does that only work for instance methods (EWrapperMsgGenerator is static). On Jun 18, 11:45 am, Jian Liu liuj...@gmail.com wrote: Hi David, Yes, the expansion I essentially want, and which runs properly