Ah thanks Bill well that would explain it! I added (println "DYN:" *ns*) to dyn.clj and (println "DEF:" *ns*) to def.clj and this is what I get: >From the command line: C:\java>clj def.clj DEF: #<Namespace clojure.core> DYN: #<Namespace clojure.core> ok >> both are in the same namespace
>From the REPL: C:\java>clj Clojure user=> (load-file "def.clj") DEF: #<Namespace user> DYN: #<Namespace clojure.core> Exception in thread "AWT-EventQueue-0" java.lang.Exception: Unable to resolve symbol: *value* in this context (dyn.clj:2) >> they are in different namespaces So that is clearly what is going on. But in terms of the OP problem how can that be resolved nicely? Well if you add (ns myns) to the top of dyn.clj, and to the top of def.clj (or test.clj in the OP) then it works fine from the REPL... is that the right approach? It seems a bit inconvenient. Regards, Tim. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---