The dir macro is quite picky in what it accepts as arguments. Try: (dir user) (dir clojure.core)
On Thu, Oct 27, 2011 at 10:57 AM, jaime <xiejianm...@gmail.com> wrote: > Hi there, when I tried to execute "(dir *ns*)" in REPL, I found it > doesn't work -- with exception of: > Exception No namespace: *ns* found clojure.core/the-ns > (core.clj:3689) > I'm not sure if I used it the right way. Following are my execution > tries: > ============================================================= > Clojure 1.3.0 > user=> (doc dir) > ------------------------- > clojure.repl/dir > ([nsname]) > Macro > Prints a sorted directory of public vars in a namespace > nil > user=> (dir *ns*) > Exception No namespace: *ns* found clojure.core/the-ns (core.clj: > 3689) > user=> *ns* > #<Namespace user> > user=> (the-ns *ns*) > #<Namespace user> > user=> (the-ns 'user) > #<Namespace user> > user=> > ============================================================= > Any suggestions?? > > -- > 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