Killing equals_t

Alex Rønne Petersen xtzgzorex at gmail.com
Sun May 13 18:24:29 PDT 2012


On 14-05-2012 02:56, Mehrdad wrote:
> On Monday, 14 May 2012 at 00:53:20 UTC, Alex Rønne Petersen wrote:
>> Hi,
>>
>> Would anyone be terribly angry if equals_t was deprecated and later
>> removed? I sent a patch a while back to add a compare_t type for
>> consistency, but the consensus ended up being that it'd be better to
>> get rid of equals_t.
>
> I don't have an opinion about either, but just to point this out:
>
> Equality is NOT the same thing as a comparison returning zero.
> (Consider complex numbers.)

I know that, but not sure what it has to do with this...

-- 
- Alex


More information about the Digitalmars-d mailing list