Tassilo Horn <tass...@member.fsf.org> writes:

Hi Meikel,

>> extenders is related to extend. You want satisfies?.
>
> It seems extends? and satisfies? are equivalent, at least with my
> minimal example.
>
> user> (for [t [MyRecord MyType Number Object]]
>       [(extends? MyProt t) (satisfies? MyProt t)])
> ([true true] [true true] [true true] [true true])
>
> So what's the intended difference?  Maybe a type satifies a protocol
> only if it implements *all* its methods?

Wrong guess.  extends? is given a protocol and a type, and satisfies? a
protocol and some object.  Now don't ask my why I got true for Number
and Object above.  I didn't extent MyProt to java.lang.Class...

Bye,
Tassilo

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