On 2008-01-24 Thom Boyer <[EMAIL PROTECTED]> wrote:
> Joe Gottman wrote:
> >   In the definition of cmp, S29 says the function "returns 
> > |Order::Increase|, |Order::Decrease|, or |Order::Same| (which
> > numify to -1, 0, +1)".  Shouldn't the enumerations and their
> > numerical values be listed in the same order?
> >
> > Joe Gottman
> The enumerations and the numerical values are both in correct order.  
> Since "abc" is less than "xyz",  "abc" cmp "xyz" is being invoked
> with its arguments in increasing order, So it returns
> Order::Increase. That numifies to -1 because that's how "less-than"
> is usually encoded.

Correct about Increase. But would ::Decrease numify to 0, and ::Same
to +1? :)

-- 
        Dakkar - <Mobilis in mobile>
        GPG public key fingerprint = A071 E618 DD2C 5901 9574
                                     6FE2 40EA 9883 7519 3F88
                            key id = 0x75193F88

That's one small step for a man; one giant leap for mankind.
                -- Neil Armstrong

Attachment: signature.asc
Description: PGP signature

Reply via email to