Object ID's

Igor Bukanov igor at mir2.org
Wed Mar 21 09:00:41 PDT 2007


On 21/03/07, John Cowan <cowan at ccil.org> wrote:
> What's worse, Java encourages class authors to override hashCode,
> and there is no basicHashCode method (as in Smalltalk) to retrieve
> the approximation-to-object-identity.

Java provides System.identityHashCode for that,
http://java.sun.com/javase/6/docs/api/java/lang/System.html#identityHashCode(java.lang.Object)

Regards, Igor



More information about the Es4-discuss mailing list