On Thursday, 4 October 2012 at 05:33:21 UTC, Walter Bright wrote:
On 10/3/2012 2:26 PM, DypthroposTheImposter wrote:
* OpCmp returning an int is fugly I r sad

How else would you return a 3 state value?

 Via enums.

 enum CmpValues { lessThan = -1, equal = 0, greaterThan = 1}

But then again, the enum is convertible to int :P. I think ints (or size_t) are just fine and do their job.

Reply via email to