#2384 How to call default hash() (Obj.hash)?

dsav Mon 1 Dec 2014

Hi all,

Is there a way to call default hash() for an object in case its class overrides hash/equals? Something like Java's System.identityHashCode.

SlimerDude Mon 1 Dec 2014

Hi Dsav!

Try Env.idHash(). Example:

hashcode := Env.cur.idHash(obj)

dsav Mon 1 Dec 2014

SlimerDude, thanks a lot! Missed it :(

Login or Signup to reply.