No.  Use identical? if you want to test for object identity.  IIRC
Rich commented that the inability to override equals/hashCode was
intentional as value equality was the correct approach.  See
http://clojure.org/state


On Jul 17, 7:00 am, Nicolas Oury <nicolas.o...@gmail.com> wrote:
> Dear all,
>
> I was wondering if they were  a way to define a record type with identity as
> an equality semantic?
>
> (defrecord A[]
>   Object
>  (hashCode ...)
>  (equals ...))
> do not work.
>
> Is there a way to do that?
>
> (Defining a deftype around the defrecord is a bit annoying)
>
> Best regards,
>
> 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