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,25aa3c7e1b59f7b5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-04 00:30:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: Thierry Lelegard Newsgroups: comp.lang.ada Subject: Re: A case where Ada defaults to unsafe? Date: Fri, 04 Jan 2002 09:27:09 +0100 Organization: CANAL+ Technologies Message-ID: <3C35675D.276C2D81@canal-plus.fr> References: <3C34BF2C.6030500@mail.com> NNTP-Posting-Host: host227.canal-plus.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: s1.read.news.oleane.net 1010132832 5665 194.2.208.227 (4 Jan 2002 08:27:12 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 4 Jan 2002 08:27:12 +0000 (UTC) X-Sender: "Thierry Lelegard" (Unverified) X-Mailer: Mozilla 4.78 [fr]C-CCK-MCD C+ (WinNT; U) X-Accept-Language: en,fr,zh-CN,zh-TW Xref: archiver1.google.com comp.lang.ada:18507 Date: 2002-01-04T09:27:09+01:00 List-Id: Maybe the actual question should be "why are there two distinct formats, with and without short-circuit?" "and then" has an actual added value over "and" (the short-circuit). On the other hand, what is the added value of "and"? What can be achieved by "and" that could not be by "and then" (except side-effect, which is a dirty practice)? If have been using Ada for 16 years and I have never understood why there are two formats. Let's assume that "and then" never existed and that "and" was defined as short-circuit (same for "or" and "or else"). Wouldn't it be better (safer) for everyone? -Thierry ____________________________________________________________________________ Thierry Lelegard, "The Jazzing Troll", Email: thierry.lelegard@canal-plus.fr CANAL+ Technologies, 34 place Raoul Dautry, 75906 Paris Cedex 15, France Tel: +33 1 71 71 54 30 Fax: +33 1 71 71 52 08 Mobile: +33 6 03 00 65 75 ____________________________________________________________________________