On Feb 19, 8:18 pm, Jeffrey Chu <joc...@gmail.com> wrote:
> Hi,
>
> Okay, I'm reasonably sure this is a bug with clojure's eval. Here's an
> even more succinct version:
>
> (defn lazy-identity [a]
> (if (seq? a)
> (map lazy-identity a)
> a))
>
> user=> (lazy-identity '(apply + '(1 2 3)))
> (apply + (quote (1 2 3)))
> user=> (eval (lazy-identity '(apply + '(1 2 3))))
> java.lang.ExceptionInInitializerError (NO_SOURCE_FILE:0)
> user=> (eval '(apply + '(1 2 3)))
> 6
>
> Let me know if you need any more information or if there's I'm doing
> wrong.
>
Fixed in 1297 - thanks for the focused report!
Rich
--~--~---------~--~----~------------~-------~--~----~
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
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---