Hi,

On May 18, 4:24 pm, Nicolas Oury <nicolas.o...@gmail.com> wrote:

> I tried satisfies? but it does not seem to do what I supposed it did.

What did you actually think it does?

user=> (defprotocol P (bar [x]))
P
user=> (satisfies? P (reify :as this P (bar [])))
true
user=> (satisfies? P 5)
nil

(Note: this was an older snapshot. Hence the obsolete reify syntax.)

Sincerely
Meikel

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