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=2.4 required=5.0 tests=BAYES_50,CTE_8BIT_MISMATCH, FREEMAIL_FROM,HELO_NO_DOMAIN,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RDNS_NONE,SPOOFED_FREEMAIL_NO_RDNS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,25aa3c7e1b59f7b5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-03 15:27:04 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!freenix!enst!enst.fr!not-for-mail From: "Gautier Write-only-address" Newsgroups: comp.lang.ada Subject: Re: A case where Ada defaults to unsafe? Date: Thu, 03 Jan 2002 23:26:44 +0000 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: avanie.enst.fr 1010100422 73610 137.194.161.2 (3 Jan 2002 23:27:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 3 Jan 2002 23:27:02 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Originating-IP: [217.162.132.110] X-OriginalArrivalTime: 03 Jan 2002 23:26:45.0186 (UTC) FILETIME=[1BA14A20:01C194AE] Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:18501 Date: 2002-01-03T23:26:44+00:00 >From: Hyman Rosen >But get away from C/C++ for a moment. In pure Ada terms, isn't it less safe >for the defaults to be "and" and "or" instead of "and then" and "or else"? In your divide-by-zero example, a beginner will find that an "and" is less safe, but if "and" was an "and then", the same beginner would not understand why "f and g" does not work properly, where "f" and "g" have side-effects. You should invent an "Ada for beginners" with "and also", "and then" operators but no "and" ! Good luck... ____________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm#Ada NB: For a direct answer, address on the Web site! _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com