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.6 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,db5c6b2ef47d4b9e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-22 15:35:54 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B33C7EE.A43D9F23@west.raytheon.com> From: Jerry Petrey <"jdpetrey"@west.raytheon.com> X-Mailer: Mozilla 4.76 [en]C-CCK-MCD CSC;Raytheon (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: short-circuit control forms (& 'long names are doom') References: <3B30F836.D700DAA3@raytheon.com> <3B32038D.F1296C79@cadence.com> <5ee5b646.0106221243.3617111a@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 22 Jun 2001 15:34:22 -0700 NNTP-Posting-Host: 147.24.83.38 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 993249354 147.24.83.38 (Fri, 22 Jun 2001 17:35:54 CDT) NNTP-Posting-Date: Fri, 22 Jun 2001 17:35:54 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:9051 Date: 2001-06-22T15:34:22-07:00 List-Id: Robert Dewar wrote: > > "DuckE" wrote in message news:... > > The GNAT standard is to use AND THEN/OR ELSE for all cases except > when simple Boolean values are involved. > > We never have a situation where both operands *must* be evaluated, > since this would represent disgusting coding with side effects, so > we do not have a rule that covers this case :-) Welcome back Robert. I like your answer to this. I was wondering when someone was going to say something about functions with side effects not being a good thing. Unfortunately, in my current application that I inherited, that are a ton of them but I would sure hate to have a coding standard that encouraged them. Jerry -- ----------------------------------------------------------------------------- -- Jerry Petrey -- Senior Principal Systems Engineer - Navigation, Guidance, & Control -- Raytheon Missile Systems - Member Team Ada & Team Forth -- NOTE: please remove in email address to reply -----------------------------------------------------------------------------