December 21, 2018 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 |
Copyright © 1999-2021 by the D Language Foundation