Open fniephaus opened 3 years ago
Ruby's #hash
isn't an identity hash, though.
We need support for hashcodes in InteropLibrary for this to work correctly. Otherwise there is no way to know how to hash a foreign object (not just by identity). cc @chumer
When using a {}.compare_by_identity
Hash, then we should use InteropLibrary#identityHashCode()
(might not be the case yet).
Looks like foreign objects do not expose
#hash
? I think it should be provided throughInteropLibrary
'sidentityHashCode
.Repro Session