[squeak-dev] true hash ^20

Chris Cunnington smalltalktelevision at gmail.com
Thu May 10 16:15:44 UTC 2012


"Not quite. It's only a number that is guaranteed to be constant
across the live time of the object. it does not uniquely identify
the object."


x := (SystemNavigation default allObjectsSelect: [: obj | obj
     identityHash = nil identityHash ]) at: 50.

y := (SystemNavigation default allObjectsSelect: [: obj | obj
     identityHash = nil identityHash ]) at: 60

x identityHash 3840

y identityHash 3840


x  (MessageNode>>#transform: "a CompiledMethod(3840)")

y  4 August 2005


x identityHash == y identityHash true

Point made.

Chris



More information about the Squeak-dev mailing list