From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b4bed4f74b8ac49 X-Google-Attributes: gid103376,public From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) Subject: Re: GNAT messages and the not operator (pitfall alert!) Date: 1996/11/06 Message-ID: <55p8b6$l29$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 194794519 references: <32762A30.D2D@watson.ibm.com> <1996Oct29.145959.1@corning.com> <327771EE.1237@watson.ibm.com> organization: Comp Sci, RMIT, Melbourne, Australia nntp-posting-user: ok newsgroups: comp.lang.ada Date: 1996-11-06T00:00:00+00:00 List-Id: "Norman H. Cohen" writes: >(As you noted, "-5 mod 4" means, surprisingly, "-(5 mod 4)", so the >table entry for X mod 4 when X = -5 is NOT the value of -5 mod 4.) I don't understand what is surprising about -5 mod 4 being the same as -(5 mod 4). After all, you expect -x to be the same as 0-x, and 0 - 5 mod 4 is ADD MULTIPLY which naturally groups as ADD ( MULTIPLY ) The grouping, at least, is identical in Pascal. -- Mixed Member Proportional---a *great* way to vote! Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.