2012年9月3日月曜日 16時54分34秒 UTC+1 David Nolen: > > On Mon, Sep 3, 2012 at 5:20 AM, Ceri Storey <ceri....@gmail.com<javascript:>> > wrote: > > Are you referring to the ability when using Clojure on the JVM to get > the map of data from referencing the protocol itself? >
I did not even know you could do that, but that does look like it could be useful. I'm really looking for something like clojure.reflect/reflect, I think. Okay--I'd missed that the information gets recorded in the namespaces var in cljs.analyse, so I think that I shoudl be able to do what I want with a combination of cljs.analyse/resolve-var , get-namespaces, and inspecting the results. Is there a better way that I've missed that anyone knows of? I'll have a play and at least try to gist the results. Thanks! > > user=> (defprotocol IFoo (-foo [a b])) > IFoo > user=> IFoo > {:on-interface user.IFoo, :on user.IFoo, :sigs {:-foo {:doc nil, > :arglists ([a b]), :name -foo}}, :var #'user/IFoo, :method-map {:-foo > :-foo}, :method-builders {#'user/-foo #<user$eval319$fn__320 > user$eval319$fn__320@76d2796e>}} > > ? > > David > -- 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