[Issue 19197] Replace instances of typeid(T).getHash(..) with hashOf

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 22 03:09:30 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19197

Nathan S. <n8sh.secondary at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n8sh.secondary at hotmail.com

--- Comment #2 from Nathan S. <n8sh.secondary at hotmail.com> ---
>Is the return of the hashOf different that the one for the one for
>the typeid(T).getHash(..)?

It can be.
https://dlang.org/phobos/object.html#.hashOf
>Calculates the hash value of `arg` with an optional `seed` initial
>value. The result might not be equal to `typeid(T).getHash(&arg)`.

--


More information about the Digitalmars-d-bugs mailing list