Object.toString, toHash, opCmp, opEquals

Per Nordlöw per.nordlow at gmail.com
Fri Apr 26 18:28:00 UTC 2024


On Thursday, 25 April 2024 at 23:06:27 UTC, Walter Bright wrote:
> The prototypes are:
>
> ```
> string toString();
> size_t toHash() @trusted nothrow;
> int opCmp(Object o);
> bool opEquals(Object o);
> ```
>
> which long predated `const`. The trouble is, they should be:

Shouldn't some or all of them be qualified as scope aswell?


More information about the Digitalmars-d mailing list