Konrad, You might find this group post on a "recursive macroexpand" useful: http://groups.google.com/group/clojure/browse_thread/thread/bba604cee3b232d9/28837d55525306d8?lnk=gst&q=recursive+macroexpand#28837d55525306d8
- Mark On Mon, Dec 1, 2008 at 9:25 AM, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > > For debugging a set of macros, I would like to see the form that a > given expression is expanded into by the compiler. My first try was > macroexpand, of course, but as its docstring says very well, it > doesn't expand macros in subforms. Is there any function that does? > In other words, given > > (defmacro m1 [x] `(* 2 ~x)) > (defmacro m2 [x] `(+ 3 ~x)) > > is there a function that will expand > > (m1 (m2 3)) > > to > > (clojure/* 2 (clojure/+ 3 3)) > > Thanks in advance, > 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---