Will the D GC be awesome?

Era Scarecrow rtcvb32 at yahoo.com
Mon Oct 8 17:13:08 PDT 2012


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.


More information about the Digitalmars-d mailing list