Will the D GC be awesome?

Simen Kjaeraas simen.kjaras at gmail.com
Thu Oct 4 07:12:43 PDT 2012


On 2012-27-04 07:10, Walter Bright <newshound1 at digitalmars.com> wrote:

>> * OpCmp returning an int is fugly I r sad
>
> How else would you return a 3 state value?

enum Comparison {
     Before = -1,
     Same = 0,
     After = 1,
     Unordered = NaN,
}

I'm not saying it should be done, but it would be more readable
(and more cmoplex to write).

-- 
Simen


More information about the Digitalmars-d mailing list