On 09.09.2010, at 09:48, Laurent PETIT wrote: > a. C/C++ is a "pre-processor". It does a first pass on the code. > Only at the end is the C/C++ compiler invoked. In Lisps, there is > still this "first pass/second pass" thing, but it's at a waay finer > granularity level: the top level form.
There may or may not be a separation into two passes, that's almost an implementation detail. You can macroexpand a whole top-level expression and then compile it, or else do macroexpansion as to-be-evaluated expressions are compiled. Clojure actually uses the second approach, but you can switch to the first by using clojure.contrib.macro-utils/mexpand-all. And since you can call mexpand-all from a macro, the distinction between the two approaches really becomes blurred. 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