Try (in-ns 'user-ns) Las On Dec 18, 2012 7:50 AM, "Alan Shaw" <noden...@gmail.com> wrote:
> user=> *ns* > #<Namespace user> > user=> (def user-ns *ns*) > #'user/user-ns > user=> user-ns > #<Namespace user> > user=> (in-ns user-ns) > ClassCastException clojure.lang.Namespace cannot be cast to > clojure.lang.Symbol clojure.lang.RT$1.invoke (RT.java:226) > > It appears I'm not understanding how namespaces are represented. > > Also, is it just wrong of me to want to remember a namespace I was working > in and try to go back to it later? > > The slightly larger context is: I'm saving an s-expression with > unqualified names in it into a file as a string. Also saving a string > indicating the name of the environment in which that string should be (read > and) eval'ed so that the names will resolve to the appropriate functions. > Advice on managing this would be appreciated. > > -Alan Shaw > > -- > 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 -- 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