August 27, 2018 [Issue 19197] New: Replace instances of typeid(T).getHash(..) with hashOf | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: petar.p.kirov@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) -- |
Copyright © 1999-2021 by the D Language Foundation