Dear all,

I spotted something than I thought was unusual in 1.2-RC2 (haven't try RC3 yet)


(defprotocol Test (test [x]))


(deftype Foo [] Test (test [x] (instance? Foo x)))


(test (Foo.)) => false

(instance? Foo (Foo.)) => true


Should I submit or I am missing something obvious?

It is never a show-stopper because you can write (declare foo?) before
(deftype Foo...

But it is sure surprising when you are relying on = to work.

Best,

Nicolas.

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