putting more smarts into a == b

Ary Borenszweig ary at esperanto.org.ar
Sat Sep 26 19:33:20 PDT 2009


Andrei Alexandrescu wrote:
> Consider two objects a and b with a of class type. Currently, the 
> expression a == b is blindly rewritten as a.opEquals(b). I argue it 
> should be rewritten into a call to an (imaginary/inlined) function 
> equalObjects(a, b)

Definitely!



More information about the Digitalmars-d mailing list