comp.lang.ada
 help / color / mirror / Atom feed
From: firth@sei.cmu.edu (Robert Firth)
Subject: Re: Question about Ada expressions
Date: 12 Oct 89 12:15:39 GMT	[thread overview]
Message-ID: <4456@bd.sei.cmu.edu> (raw)
In-Reply-To: 8834@spool.cs.wisc.edu

In article <8834@spool.cs.wisc.edu> schmidt@green.cs.wisc.edu (Perry Schmidt) writes:

>In Ada, when building boolean expressions you must put ANDs and ORs (and
>OR ELSES, etc) in parents IF you use them in mixed combination.

>So the question is -- WHY?

There is no problem of semantic ambiguity, any more than with, say,
A + B*C.  The reason for the restriction is that one of the language
designers believed the relative priorities of the Boolean operators
were sufficiently unfamiliar to the general run of programmers that
expressions such as

	A and B or C

could cause confusion or, worse, be misinterpeted.

  parent reply	other threads:[~1989-10-12 12:15 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-09-29  1:59 Ada 9X objectives Bill Wolfe
1989-09-30 16:59 ` ryer
1989-10-02 18:00   ` William Thomas Wolfe, 2847 
1989-10-02 20:07     ` William Thomas Wolfe, 2847 
1989-10-02 23:33       ` Translating 83 => 9X (Was: Re: Ada 9X objectives) Ronald Guilmette
1989-10-03 18:14         ` William Thomas Wolfe, 2847 
1989-10-03 20:02           ` Ronald Guilmette
1989-10-05  1:56             ` William Thomas Wolfe, 2847 
1989-10-05 20:35               ` John Goodenough
1989-10-06 16:11                 ` Ada 9X objectives William Thomas Wolfe, 2847 
1989-10-07  1:27               ` Translating 83 => 9X (Was: Re: Ada 9X objectives) Ronald Guilmette
1989-10-08 16:39                 ` Translating 83 => 9X William Thomas Wolfe, 2847 
1989-10-04 18:08           ` Translating 83 => 9X (Was: ryer
1989-10-05 15:29           ` stt
1989-10-08 17:56             ` Modernizing Ada William Thomas Wolfe, 2847 
1989-10-04 13:09       ` Re^2: Ada 9X objectives James E. Cardow
1989-10-04 20:24         ` Ted Dunning
1989-10-05  2:04           ` Ada vs. Scheme William Thomas Wolfe, 2847 
1989-10-06 12:06           ` Re^2: Ada 9X objectives Norman Diamond
1989-10-06 12:50           ` Robert Munck
1989-10-08 17:07             ` William Thomas Wolfe, 2847 
1989-10-10 15:00               ` Robert Munck
1989-10-11 14:47                 ` William Thomas Wolfe, 2847 
1989-10-11 18:13               ` Dick Dunn
1989-10-11 22:14                 ` Question about Ada expressions Perry Schmidt
1989-10-12 10:56                   ` STEPHEN D. STRADER
1989-10-12 12:15                   ` Robert Firth [this message]
1989-10-12 22:07                   ` stt
1989-10-13 14:38                   ` horst
1989-10-12  1:11                 ` Ada 9X objectives William Thomas Wolfe, 2847 
1989-10-13 11:05                 ` Markku Sakkinen
1989-10-06 19:00         ` Re^2: " Dick Dunn
1989-10-10  3:26           ` James E. Cardow
1989-10-12  5:09             ` Ada 9X objectives and long development cycles Dick Dunn
1989-10-12 18:16           ` Re^2: Ada 9X objectives Robert Eachus
1989-10-02 21:01   ` William Thomas Wolfe, 2847 
  -- strict thread matches above, loose matches on Subject: below --
1989-10-12 23:37 Question about Ada expressions Karl Nyberg
1989-10-15 20:35 ` Scott Simpson
replies disabled

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