[phobos] Issue with opEquals(Object, Object)

Andrei Alexandrescu andrei at erdani.com
Tue Apr 27 15:18:28 PDT 2010


On 04/27/2010 04:57 PM, Steve Schveighoffer wrote:
> In fact, I would posit that unless lhs.opEquals and rhs.opEquals
> point to the exact same function, transitivity can be unwittingly
> broken.  Actually, you could use this check instead of checking the
> typeinfos are equal when determining if you can call just one
> function because it covers more ground.

Good point. So now it looks like opEquals is too flexible, not too 
inflexible :o).

Andrei


More information about the phobos mailing list