comp.lang.ada
 help / color / mirror / Atom feed
From: agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!swillden@ucbvax.B erkeley.EDU  (Shawn Willden)
Subject: Mixing logical operators
Date: 5 Jan 93 18:02:16 GMT	[thread overview]
Message-ID: <1993Jan5.180216.7426@fcom.cc.utah.edu> (raw)

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

             reply	other threads:[~1993-01-05 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-01-05 18:02 agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!swillden [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-01-05 21:08 Mixing logical operators Alex Blakemore
1993-01-05 23:15 Mark A Biggar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox