object-hash

Returns a hash-code for object that corresponds to the equivalence predicate ==.  It is made available as a tool for writing hash functions in which the object identity of some component of a key is to be used in computing the hash code.  It returns a hash id (an integer) and associated hash state for the object, computed in some implementation dependent manner.  The values returned by object-hash when called repeatedly on the same object might not be the same for each call.  If the hash-id value changes then the hash-state value will also change.

Exported from

Modifiers

sealed

Arguments

keyAn instance of <object>.
initial-stateAn instance of <hash-state>.

Values

hash-idAn instance of <integer>.
hash-stateAn instance of <hash-state>.
Returns a hash-code for object that corresponds to the equivalence predicate ==.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of all Dylan objects.
The type of hash states.
The class of integers.