Exactly.  If you really need to mod a neg you probably
have a bad algorithm.  If you need to you can do it
portably with a sign check.  If you want it to work
with more than one compiler you had better expect
the expected.  The result is undefined.  Ken took the
pragmatic approach.  So do others.

brucee

On 12/17/05, Jack Johnson <[EMAIL PROTECTED]> wrote:
> On 12/16/05, Bruce Ellis <[EMAIL PROTECTED]> wrote:
> > Sorry for being relevant to the mailing list.
>
> And actually, I should probably apologize and clarify.  I didn't
> intend to be irrelevant.  I wanted to bring it up because I had my own
> expectations that turned out not to be true, and thought it might
> foster good discussion regarding why it is the way it is in Plan 9 and
> whether that was a conscious decision or legacy or something else.
>
> Several people pointed out aspects of mod I hadn't considered--across
> the spectrum--so I'm grateful.
>
> -Jack
>

Reply via email to