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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bda36258b2fe9834 X-Google-Thread: 1094ba,3354bcb01bfd8111 X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!manticore.nntpserver.com.POSTED!teranews!not-for-mail From: Martin Krischik Subject: Re: Shortcut logicals (was: Re: F200x ) Newsgroups: comp.lang.ada,comp.lang.fortran Followup-To: comp.lang.ada,comp.lang.fortran Reply-To: martin@krischik.com References: Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Date: Tue, 01 Feb 2005 07:00:11 EST Message-ID: <1107259211.c5d05dcbf8695b73b67b208313002b2b@teranews> X-Abuse-Report: http://www.usenetabuse.com X-Abuse-Notes: Abuse reports must be submited via the usenetabuse.com portal listed above. X-Abuse-Notes2: Reports sent via any other method will not be processed. X-Abuse-Notes3: Any other abuse reporting headers in this article are fraudulent. Date: Tue, 01 Feb 2005 12:43:47 +0100 Xref: g2news1.google.com comp.lang.ada:8107 comp.lang.fortran:10047 Date: 2005-02-01T12:43:47+01:00 List-Id: Christoph Grein wrote: > > Robert A Duff wrote: > > > > > And the syntax rules forbid mixing "and" and "and then" -- you have > > > to use > > > parens.??All?of?these?("and",?"and?then",?"or",?"or?else",?"xor") are > > > lower precedence than most other operators in Ada.??So?you?can write: > > > > Are you sure? I did not find anything in the RM to support that. I > checked > > both the RM and AARM: > of course Robert is sure, if not, who else - you should know, he's > deeply involved in Ada development. Ok you are right, I am a just bit weak on names. > See RM 4.4(2..7). For our friends from comp.lang.fortran: You can read it up at http://www.adaic.com/standards/95lrm/html/RM-4-4.html: > You'll find > relation and relation gives an expression, > relation and then relation also gives an expression. > But there is no syntax rule to combine an expression with a relation. > You can only combine a parenthesized expression (a primary) with a > relation. Sure, you are right. But that rule means that: X or Y and Z is not valid either. Not that I ever noticed - I would always use '()' on such a term. > > http://www.adaic.com/standards/95lrm/html/RM-4-5-1.html > > http://www.adaic.com/standards/95aarm/html/AA-4-5-1.html > > > > (To the Fortran comunity: the the first is the general public > version, the > > later the compiler vendor version). > > More precisely: The first is the binding reference manual, the second > has further discussions, explanations and rationales without any binding > character. Of course there should be no contradictions between the two. You know me: I always try to use easy words. Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com