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.

On Mon, Oct 18, 2010 at 12:42 PM, Sergio Arbeo <ser...@gmail.com> wrote:
> Hello, everyone,
>
> I'm having problems with the dot special form. First things first, I
> have src-out defined this way:
>
> http://gist.github.com/632852
>
> Then, I have problems using that function as an argument for a macro:
>
> http://gist.github.com/632849
>
> Evaluation aborted throws an exception, shown in one of the three
> files. The original macro is there too. Why does that fail if it is
> called with (src-out) but it doesn't if called with (src-out) already
> evalled?
>
> Thanks,
>
> 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



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

-- 
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