A detail of the hash protocol

bearophile bearophileHUGS at lycos.com
Sat Oct 25 01:20:18 PDT 2008

In this page:
regarding the hashing protocol it says that structs need:
uint toHash();
While classes:
hash_t toHash()

Is that a little documentation error? I presume they both have to return an uint or hash_t or a size_t...

What's the purpose of a separated hash_t type? Can't it be removed, keeping just an uint or size_t for that purpose?

Thank you, bye,

More information about the Digitalmars-d-learn mailing list