From: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Hashtbls with physical equality?
Date: Mon, 15 Nov 2004 22:30:04 +0100 [thread overview]
Message-ID: <87wtwm242r.fsf@qrnik.zagroda> (raw)
In-Reply-To: <Pine.LNX.4.44.0411151400080.19815-100000@localhost.localdomain> (Brian Hurt's message of "Mon, 15 Nov 2004 14:37:36 -0600 (CST)")
Brian Hurt <bhurt@spnz.org> writes:
> There is no magic value associated with objects, unlike Java. Personally,
> I think that was one of the biggest screwups with Java.
Where is it in Java? As far as I know Java does not provide any way
to obtain a unique int corresponding to object identity.
It does provide a default hashCode() which is compatible with the
default equals(), and the default equals() compares pointers, but
hashCode() does not have to be unique. It's still hard to implement
the default hashCode() with a copying GC (with a usable distribution
and without overheads).
--
__("< Marcin Kowalczyk
\__/ qrczak@knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
next prev parent reply other threads:[~2004-11-15 21:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-14 22:29 Wheeler Ruml
2004-11-15 0:33 ` [Caml-list] " Christian Szegedy
[not found] ` <20041115012212.GA6561@artisan.com>
2004-11-15 2:20 ` Wheeler Ruml
2004-11-15 10:24 ` Alex Baretta
2004-11-15 16:45 ` Wheeler Ruml
2004-11-15 20:34 ` Marcin 'Qrczak' Kowalczyk
2004-11-15 20:37 ` Brian Hurt
2004-11-15 21:03 ` Wheeler Ruml
2004-11-15 21:30 ` Marcin 'Qrczak' Kowalczyk [this message]
2004-11-15 23:42 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wtwm242r.fsf@qrnik.zagroda \
--to=qrczak@knm.org.pl \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox