www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19197] New: Replace instances of typeid(T).getHash(..) with


          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
* 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)

Aug 26 2018