[Issue 16973] `hashOf` has error-prone signature as `(T, seed)` may be confused with `(ptr, length)`
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Dec 15 17:56:14 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16973
safety0ff.bugz <safety0ff.bugz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |safety0ff.bugz at gmail.com
--- Comment #3 from safety0ff.bugz <safety0ff.bugz at gmail.com> ---
(In reply to Denis Shelomovskii from comment #1)
> This issue caused druntime Issue 16974.
Druntime used to have a function rt.util.hash.hashOf with signature:
size_t hashOf( const(void)* buf, size_t len, size_t seed )
Which made up most references to 'hashOf' within druntime (by TypeInfos.)
I wouldn't be surprised if this bug was due to thinking it's calling
rt.util.hash.hashOf instead of object.hashOf.
Mistaking core.internal.hash.hashOf for rt.util.hash.hashOf was responsible for
a recent regression.
--
More information about the Digitalmars-d-bugs
mailing list