[Issue 19197] New: Replace instances of typeid(T).getHash(..) with hashOf
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 27 06:29:11 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19197
Issue ID: 19197
Summary: Replace instances of typeid(T).getHash(..) with hashOf
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: petar.p.kirov at gmail.com
Since core.internal.hash.hashOf is a template, there are a number potential
benefits:
* better performance (e.g. more opportunities for inlining, less indirections
for value types)
* less dependence on TypeInfo (which we want to phase out in the long term)
* -betterC friendly (no need to link druntime and phobos to your library / app,
in order to use simple templates like std.typecons.Nullable)
--
More information about the Digitalmars-d-bugs
mailing list