[druntime] TypeInfo.getHash problems
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Feb 29 15:27:17 PST 2012
On Wed, Feb 29, 2012 at 05:14:02PM -0500, bearophile wrote:
> H. S. Teoh:
> > I found the following bugs with the current implementations of getHash
> > in the various TypeInfo classes:
> Maybe there are other bugs you have not found yet.
> In my opinion this is an important topic (some of the bugs listed here have wasted lot of my time, and generally those limits/bugs reduce the usefulness and safety of the built-in AAs significantly).
Walter fixed a bug in TypeInfo_Array.getHash yesterday, so now wstring
and dstring keys actually work properly with AA's (latest druntime on
github -- note, you need to recompile phobos for the changes to take
But these additional issues are still there, so using an array of
objects or another AA as key won't work properly yet.
Freedom of speech: the whole world has no right *not* to hear my spouting off!
More information about the Digitalmars-d