opEquals and opCmp are not about hashing, I believe. They are just operators to help when dealing with chaining when different objects have same hash (since hash may be not unique)
Contents of struct are compared field by field using comparison
for the type of each field. Dynamic arrays are compared by
contents. If you want to compare them by pointer use .ptr
property.
- How do I obtain the default hash of a user-defined st... dnspies
- Re: How do I obtain the default hash of a user-d... FreeSlave
- Re: How do I obtain the default hash of a us... dnspies
- Re: How do I obtain the default hash of ... FreeSlave
- Re: How do I obtain the default hash of a us... dnspies
- Re: How do I obtain the default hash of ... bearophile
- Re: How do I obtain the default hash... dnspies
- Re: How do I obtain the default... bearophile
- Re: How do I obtain the default hash... Steven Schveighoffer
- Re: How do I obtain the default... bearophile
- Re: How do I obtain the default... dnspies
- Re: How do I obtain the def... H. S. Teoh
- Re: How do I obtain the def... bearophile