> In testing out clojure.contrib.logging within a generated servlet, I > noticed that the value of *ns* is always clojure.core, and not the ns > of the code.
I have observed this too (running in SailFin, which is based on GlassFish). > Expected response: com.example.servlet > Actual response: clojure.core I don't think so. Remember, this'll print the current binding of *ns* when that function is invoked, not at compile time. Counter-example: user=> (ns foo (:refer-clojure)) nil foo=> (defn bar [] (println *ns*)) #'foo/bar foo=> (bar) #<Namespace foo> nil foo=> (ns baz (:refer-clojure)) nil baz=> (foo/bar) #<Namespace baz> nil The important thing is the binding of *ns* in the thread that invokes your servlet. I don't know of a way to control that. -R --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---