What is a good way to get the :file and :line meta information for a method?

Getting this meta information for a multi is straight forward:

(meta #'clojure.core/print-method) =>
{:ns #<Namespace clojure.core>, :name print-method, :file "clojure/ core.clj", :line 2314, :tag clojure.lang.MultiFn}

But what about getting this meta information for a method? Such as the result from a call to get-method:

(get-method clojure.core/print-method 1)

Calling meta on the result returns nil, even if this is true:

(instance? clojure.lang.IMeta (get-method clojure.core/print-method 1))

-- Terje Norderhaug
  te...@in-progress.com




--
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