www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Defining a class toHash() that include the typeinfo

What's the preferred way of defining a `toHash()` for a concrete 
class that includes the TypeInfo [1] in the hash? Is it ok to 
hash only the address of the typeinfo pointer, assuming it's 
statically allocated?

[1] https://dlang.org/library/object/type_info.html
Dec 21 2018