To me its an implementation wart which is dictated by the use of the reflection API in the compiler. There is some work done by Stu to create a clojure reflection API with several backends (eg ASM or Java Reflection). However I won't bet on the *current* compiler being fixed.
my 2 cents Christophe On Thu, Nov 4, 2010 at 4:09 AM, ka <sancha...@gmail.com> wrote: > >> I would guess the problem is referring to T inside the deftype. > > This also works: > > (deftype T [] Object (equals [this o] (if (= T (class o)) true > false))) > > But as Meikel said hope that this is not the end of the story. > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.cgrand.net/ (en) -- 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