Just a simpler example to demonstrate that new threads have *ns* set to clojure.core:
(def *value* 'ok) (def *a* (agent nil)) (send *a* (fn f [x] (println "AGENT:" *ns*))) (send *a* (fn f [x] (eval '(println "AGENT:" *value*)))) (try (await *a*) (catch Exception e (println e) (println (agent-errors *a*)))) I guess the question is should *ns* be taken from the parent thread *ns*? I'm not sure that is even feasible (or desirable)... in any case explicitly setting *ns* works, and really who uses eval/load-file like this?? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---