[Issue 18767] New: __xtoHash memberwise hashing shouldn't just sum the member hashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 16 21:37:48 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18767
Issue ID: 18767
Summary: __xtoHash memberwise hashing shouldn't just sum the
member hashes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
Currently:
```
const(char)* code =
"size_t h = 0;" ~
"foreach (i, T; typeof(p.tupleof))" ~
" h += typeid(T).getHash(cast(const void*)&p.tupleof[i]);" ~
"return h;";
```
--
More information about the Digitalmars-d-bugs
mailing list