www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Inconsistent hashing schemes for various typeinfos

What's the reason that getHash is implemented in incompatible ways
between TypeInfo_Array and the various hard-coded array types (e.g.,
TypeInfo_Aa.getHash)? Shouldn't hashOf() be used universally?


If you look at a thing nine hundred and ninety-nine times, you are perfectly
safe; if you look at it the thousandth time, you are in frightful danger of
seeing it for the first time. -- G. K. Chesterton
Mar 15 2012