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.
I think that some confusion is due to == is regarded as meaning
equality while it only means equivalence.
- Re: WAT: opCmp and opEquals woes Manu via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Manu via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Walter Bright via Digitalmars-d
- Re: WAT: opCmp and opEquals woes H. S. Teoh via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Walter Bright via Digitalmars-d
- Re: WAT: opCmp and opEquals woes H. S. Teoh via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes H. S. Teoh via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Ola Fosheim Gr via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Don via Digitalmars-d
- Re: WAT: opCmp and opEquals woes via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Walter Bright via Digitalmars-d
- Re: WAT: opCmp and opEquals woes Fool via Digitalmars-d
- Re: WAT: opCmp and opEquals woes via Digitalmars-d