On Wed, Mar 3, 2010 at 8:43 AM, Andrea Tortorella <elian...@gmail.com>wrote:

> Hi everyone,
>
> if I run this code:
>
> (defprotocol P
>  (foo [x]))
>
> (deftype T []
>  P
>  (foo [] "dummy"))
>
> (extends? P T)
> ;==> nil
> (satisfies? P T)
> ;==> nil
> (extenders P)
> ;==>nil
>
> are they not yet implemented?
>

Nil means the tests fail, that T does not extend or satisfy P. It looks like
you're missing the argument on the foo function in the definition of T. If
you put an argument in there, do you get the results you expect?

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