On 18 October 2010 22:05, Kevin Downey <[email protected]> wrote: > clojure works something like reader -> macro expansion -> compiler (eval) -> > run > > the exception you are seeing means that your macro expansion contains > a form that the compiler doesn't know how to generate code for. for > example if your macro expansion contained a Graphics2d object the > compiler would barf because it doesn't know how to generate code that > will reconstruct that Graphics2d object at runtime. > > this happens a lot if you write macros and don't understand the > difference between the stages given above. macros should generally not > be running code, they should be emitting code that then gets compiled > and later run.
Thank you for the explanation. Serabe -- http://sergio.arbeo.net http://www.serabe.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
