Meikel Brandmeyer <[email protected]> writes:
Hi Meikel,
> extenders is related to extend. You want satisfies?.
It seems extends? and satisfies? are equivalent, at least with my
minimal example.
--8<---------------cut here---------------start------------->8---
user> (for [t [MyRecord MyType Number Object]]
[(extends? MyProt t) (satisfies? MyProt t)])
([true true] [true true] [true true] [true true])
--8<---------------cut here---------------end--------------->8---
So what's the intended difference? Maybe a type satifies a protocol
only if it implements *all* its methods?
Anyway, what I want (for my documentation generator) is to list all
types that extend (satisfy?) a protocol. `extenders' does that, except
for deftypes and defrecords. (Extending a protocol on a type or record
later on will be picked up.)
Bye,
Tassilo
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en