[IronPython] Object ids and hash code

Sriram Krishnan sriramk at gmail.com
Sun Mar 27 11:13:15 CEST 2005


I saw that IronPython 0.7 uses
System.Runtime.CompilerServices.RuntimeHelpers to get the hash code of an
object (thereby removing the need for the Reflection.Emit/util dll hack in
0.6). However, if I remember correctly, .NET hash codes are *not* guaranteed
to be unique. Brad Abrams talks about it here
http://blogs.msdn.com/brada/archive/2003/09/30/50396.aspx.

Doesn't this open up problems when 2 objects have the same id?

Thanks,
Sriram





More information about the Ironpython-users mailing list