digitalmars.D.learn - Defining a class toHash() that include the typeinfo
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (5/5) Dec 21 2018 What's the preferred way of defining a `toHash()` for a concrete
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