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-20 18:18:54 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "Mark Lundquist" Newsgroups: comp.lang.ada References: <3B312495.15258B18@boeing.com> Subject: Re: short-circuit control forms X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: <1YbY6.213292$p33.4311302@news1.sttls1.wa.home.com> Date: Thu, 21 Jun 2001 01:18:53 GMT NNTP-Posting-Host: 24.20.66.39 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 993086333 24.20.66.39 (Wed, 20 Jun 2001 18:18:53 PDT) NNTP-Posting-Date: Wed, 20 Jun 2001 18:18:53 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:8955 Date: 2001-06-21T01:18:53+00:00 List-Id: "Jeffrey Carter" wrote in message news:3B312495.15258B18@boeing.com... > > 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. I don't think that's correct... The compiler can do whatever it wants, as long as it's equivalent [RM 1.1.3]. -- mark