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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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!news4.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny06.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada,comp.lang.fortran References: <1107259211.c5d05dcbf8695b73b67b208313002b2b@teranews> <41ff79df$0$538$ba620e4c@news.skynet.be> <1107266645.d89440009860d548c1e3d72cdc821e0c@teranews> Subject: Re: Shortcut logicals (was: Re: F200x ) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: Date: Tue, 01 Feb 2005 16:57:20 GMT NNTP-Posting-Host: 141.154.226.233 X-Complaints-To: abuse@verizon.net X-Trace: trndny06 1107277040 141.154.226.233 (Tue, 01 Feb 2005 11:57:20 EST) NNTP-Posting-Date: Tue, 01 Feb 2005 11:57:20 EST Xref: g2news1.google.com comp.lang.ada:8117 comp.lang.fortran:10070 Date: 2005-02-01T16:57:20+00:00 List-Id: "Martin Krischik" wrote in message news:1107266645.d89440009860d548c1e3d72cdc821e0c@teranews... > I fully agree with you here - and most Ada users will do as well. I would > use () in C and C++ as well - for clarity. > > This is of corse a cross post with comp.lang.fortran and I wonder how they > see our solution to the problem. Is it suitable for Fortran 2003 as well > or > do they need another solution? In defense of Fortran, as early as Fortran '66 (back in the bad old days of punch cards, batch processing and paper print-outs), it was illegal to write something like ISGOOD .XOR. ISFREE .XOR. ISHERE without parentheses, since it is not obvious how this expression was to be evaluated. I'm also glad that Ada does not accept A ** B ** C since I know programming languages that would evaluate this as ( A ** B ) ** C as well as languages that would evaluate this as A ** ( B ** C )