WAT: opCmp and opEquals woes
Fool via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jul 27 14:07:08 PDT 2014
I think that some confusion is due to == is regarded as meaning
equality while it only means equivalence.
Modifying the RGB color example: there is a natural order < on
the red channel. Given this ordering, two RGB colors are
equivalent if and only if their red values coincide. In this
sense, for example, the colors (0, 0, 0) and (0, 255, 255)
equivalent although they are not equal.
More information about the Digitalmars-d
mailing list