[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
Fri Dec 16 22:41:36 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16973
--- Comment #4 from Denis Shelomovskii <verylonglogin.reg at gmail.com> ---
(In reply to safety0ff.bugz from comment #3)
> (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.
No doubts it's a function call from wrong module. But it doesn't change the
fact that Issue 16974 is caused by this issue.
--
More information about the Digitalmars-d-bugs
mailing list