digitalmars.D.bugs - [Issue 18767] New: __xtoHash memberwise hashing shouldn't just sum
- d-bugmail puremagic.com (23/23) Apr 16 2018 https://issues.dlang.org/show_bug.cgi?id=18767
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 puremagic.com Reporter: n8sh.secondary 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;"; ``` --
Apr 16 2018