Why does Object.opEquals *exist*
Ary Manzana
ary at esperanto.org.ar
Thu Nov 9 09:52:55 PST 2006
Anders F Björklund escribió:
> Kristian Kilpi wrote:
>
>> So the original question remains: why 'opEquals' returns int?
>
> Walter says it is for performance reason, when e.g. sorting...
>
> http://www.digitalmars.com/d/archives/digitalmars/D/bugs/7933.html
>
> --anders
Can't a bool be an int instead of a byte? Make it an alias of int, or
something like that.
More information about the Digitalmars-d
mailing list