Differences between '==' and 'is' beyond null and overloading

bearophile bearophileHUGS at lycos.com
Tue Apr 16 06:42:19 PDT 2013

Nicholas Smith:

> (which would have an identical meaning to == as structs are 
> value types and can't be compared any other way).

You can redefine struct equality.

> But, by default, equality tests if object references are equal,

Currently the equality is a method of object.


More information about the Digitalmars-d-learn mailing list