[druntime] TypeInfo.getHash problems

2012-02-29 Thread H. S. Teoh
I found the following bugs with the current implementations of getHash in the various TypeInfo classes: 1) TypeInfo_Array.getHash doesn't work correctly with class objects. with custom toHash() methods. Or, for that matter, arrays of AA's (which have their own problems--see (3a)). It just does a h

Re: [druntime] TypeInfo.getHash problems

2012-02-29 Thread bearophile
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

Re: [druntime] TypeInfo.getHash problems

2012-02-29 Thread H. S. Teoh
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 th

Re: [druntime] TypeInfo.getHash problems

2012-03-01 Thread Dmitry Olshansky
On 01.03.2012 1:45, H. S. Teoh wrote: I found the following bugs with the current implementations of getHash in the various TypeInfo classes: 1) TypeInfo_Array.getHash doesn't work correctly with class objects. with custom toHash() methods. Or, for that matter, arrays of AA's (which have their o

Re: [druntime] TypeInfo.getHash problems

2012-03-01 Thread H. S. Teoh
On Thu, Mar 01, 2012 at 12:36:31PM +0400, Dmitry Olshansky wrote: > On 01.03.2012 1:45, H. S. Teoh wrote: > >I found the following bugs with the current implementations of > >getHash in the various TypeInfo classes: > > > >1) TypeInfo_Array.getHash doesn't work correctly with class objects. > >with

Re: [druntime] TypeInfo.getHash problems

2012-03-01 Thread Dmitry Olshansky
On 01.03.2012 18:56, H. S. Teoh wrote: On Thu, Mar 01, 2012 at 12:36:31PM +0400, Dmitry Olshansky wrote: On 01.03.2012 1:45, H. S. Teoh wrote: I found the following bugs with the current implementations of getHash in the various TypeInfo classes: 1) TypeInfo_Array.getHash doesn't work correctl