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,FREEMAIL_FROM, 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: johnherro@aol.com (John Herro) Subject: Re: GNAT messages and the not operator (pitfall alert!) Date: 1996/10/29 Message-ID: <554f6p$4m8@newsbf02.news.aol.com>#1/1 X-Deja-AN: 192893891 sender: root@newsbf02.news.aol.com references: organization: America Online, Inc. (1-800-827-6364) newsgroups: comp.lang.ada Date: 1996-10-29T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) corrects my error, writing that Ada requires parentheses when mixing "and" and "or" in an expression. I'm surprised, but of course you're right! I was thinking of mentioning this in the "Loose Ends and Pitfalls" section of my AdaTutor program, but then decided against it. If a person writes A and B or C, the compiler will complain, so that's not really a pitfall, just a possible surprise.. Fortunately, the tutorial _does_ already list as a pitfall the fact that -A mod B means -(A mod B). - John Herro Software Innovations Technology http://members.aol.com/AdaTutor ftp://members.aol.com/AdaTutor ----- The mathematical relationship between Christmas and Halloween: 31 = 25 OCT DEC