toHash => pure, nothrow, const, @safe

Stewart Gordon smjg_1998 at yahoo.com
Mon Mar 12 18:15:59 PDT 2012


On 11/03/2012 23:54, Walter Bright wrote:
> Consider the toHash() function for struct key types:
>
> http://dlang.org/hash-map.html
>
> And of course the others:
>
> const hash_t toHash();
> const bool opEquals(ref const KeyType s);
> const int opCmp(ref const KeyType s);
<snip>

And what about toString?

Stewart.


More information about the Digitalmars-d mailing list