Re: Killing equals_t

2012-12-23 Thread bearophile
Jonathan M Davis: (since D1 made the mistake of having opEquals return int), I think it wasn't a mistake, more like a design choice. In some cases (especially when there is no inlining) computing and returning an int is more efficient than converting to bool. In practice I think the increa

Re: Killing equals_t

2012-12-23 Thread Phil Lavoie
On Monday, 14 May 2012 at 02:35:11 UTC, Jonathan M Davis wrote: On Monday, May 14, 2012 02:53:20 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 e

Re: Killing equals_t

2012-05-13 Thread H. S. Teoh
On Mon, May 14, 2012 at 02:53:20AM +0200, 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

Re: Killing equals_t

2012-05-13 Thread Era Scarecrow
On Monday, 14 May 2012 at 02:35:11 UTC, Jonathan M Davis wrote: equals_t is not mentioned in TDPL (rather, TDPL specifically lists opEquals as returning bool), and I see _zero_ value in having bool at this point. As I understand it, it was created purely for transitional purposes (since D1 made

Re: Killing equals_t

2012-05-13 Thread Jonathan M Davis
On Monday, May 14, 2012 02:53:20 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.

Re: Killing equals_t

2012-05-13 Thread Alex Rønne Petersen
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

Re: Killing equals_t

2012-05-13 Thread Mehrdad
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.