[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 08:45:03 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16973
--- Comment #2 from Denis Shelomovskii <verylonglogin.reg at gmail.com> ---
A possible solution is to require explicit second argument type specification.
Using current language abilities it can be done with helper `seed` function or
struct:
---
hashOf(obj, seed(0));
---
or with function overload rename:
---
hashOfWithSeed(obj, 0);
---
--
More information about the Digitalmars-d-bugs
mailing list