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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,ddafdc033e838b1d X-Google-Thread: 103376,cd51fe79965e9795 X-Google-Attributes: gid1094ba,gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny02.gnilink.net.POSTED!c2bfcbcf!not-for-mail Newsgroups: comp.lang.fortran,comp.lang.ada Subject: Re: Order of logical operations References: <40C0208A.80DBE53A@wldelft.nl> <2ic6o2Flfo94U1@uni-berlin.de> Message-ID: From: "Ed Falis" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit User-Agent: Opera M2/7.51 (Win32, build 3798) Date: Mon, 07 Jun 2004 17:36:20 GMT NNTP-Posting-Host: 141.154.123.186 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1086629780 141.154.123.186 (Mon, 07 Jun 2004 13:36:20 EDT) NNTP-Posting-Date: Mon, 07 Jun 2004 13:36:20 EDT Xref: g2news1.google.com comp.lang.fortran:1738 comp.lang.ada:1203 Date: 2004-06-07T17:36:20+00:00 List-Id: On Mon, 07 Jun 2004 13:00:20 -0400, Warren W. Gay VE3WWG wrote: > Nick Roberts wrote: > >> Surely it's quite handy to be able to write things like the following? >> A: array (1..10) of Boolean; >> ... >> while i > 0 and then A(i) loop >> ... > > I find it handy for access types (for the FORTRAN folks, > the use of pointers): > > if P /= null and then P.Member <= 23 then > ... > > If this were not short-circuited the P.Member access > would be problematic when P was null. Sorry I didn't mention this kind of use in my first message. It's so obvious and widespread that I forgot to list it ;-) - Ed