On 18 October 2010 22:05, Kevin Downey <redc...@gmail.com> 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 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

Reply via email to