From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 5 Jan 93 18:02:16 GMT From: agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!swillden@ucbvax.B erkeley.EDU (Shawn Willden) Subject: Mixing logical operators Message-ID: <1993Jan5.180216.7426@fcom.cc.utah.edu> List-Id: My copy of the Ada standard (ANSI/MIL-STD-1815A) says in 4.5.4: ...for a sequence of operators of the same precedence level, the operators are associated in textual order from left to right... which indicates to me that if i=5 and j=2 or k=3 then ... should be interpreted as if (i=5 and j=2) or k=3 then but the VAX Ada compiler complains that logical operators cannot be intermixed. Is the VAX compiler wrong? Am I reading the appropriate part of the standard? Shawn. -- Shawn Willden swillden@icarus.weber.edu