Hi everyone, it appears that eval works differently when used inside a future. The following example REPL session shows what I mean:
user> (clojure-version) "1.2.0-master-SNAPSHOT" user> (defn my-inc [x] (+ x 1)) #'user/my-inc user> (eval '(my-inc 1)) 2 user> (future (eval '(my-inc 1))) #<core$future_call$reify__5496@18c92d9: :pending> user> (deref *1) java.lang.Exception: Unable to resolve symbol: my-inc in this context (NO_SOURCE_FILE:1) [Thrown class java.util.concurrent.ExecutionException] I found this rather strange. Does anyone know why this happens and whether it is actually intended? Is it a bug or a feature ;-). Best, Nils -- 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