It uses (meta (var common/basic-logger)).

On Mon, Oct 31, 2011 at 2:28 PM, Sean Devlin <francoisdev...@gmail.com> wrote:
> I'm a bit confused by what the doc macro is doing.  Doesn't it simply
> work of the metadata of what is passed to it?
>
> I try this at the REPL:
>
> user=> (doc common/basic-logger)
> -------------------------
> decorators.common/basic-logger
> nil
>  nil
> nil
>
> For the following item:
>
> user=> (meta common/basic-logger)
> {:ns #<Namespace decorators.common>, :name basic-logger, :file
> "decorators/common.clj", :line 13, :arglists ([f]), :doc "This is a
> very basic logging decorator."}
>
> Shouldn't I see something like this:
>
> user=> (doc common/basic-logger)
> -------------------------
> decorators.common/basic-logger
> ([f])
>  This is a very basic logging decorator.
> nil
>
> Any help would be great.
>
> --
> 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

Reply via email to