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: 103376,db5c6b2ef47d4b9e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-21 07:31:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!newsin.onlynews.com!easynews!cyclone.swbell.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B320527.EE9D89B6@ftw.rsc.raytheon.com> From: Wes Groleau X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en,es,fr,pt MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: short-circuit control forms References: <3B312495.15258B18@boeing.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 21 Jun 2001 09:31:03 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 993133865 151.168.144.162 (Thu, 21 Jun 2001 10:31:05 EDT) NNTP-Posting-Date: Thu, 21 Jun 2001 10:31:05 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:8970 Date: 2001-06-21T09:31:03-05:00 List-Id: > IANAL, nor do I play one on TV. However, "and" and "or" are normal > subprograms (you can overload them), and the semantics for subprograms > state that all actual parameters are evaluated, and the order of > evaluation is not specified by the language (ARM 6.4). Thus, it is > illegal for a compiler to convert them to short-circuit forms. However, the RM discussion of 'and' and 'or' implies that redefined (overloaded) versions have different rules than the "originals" -- Wes Groleau http://freepages.rootsweb.com/~wgroleau