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-03 12:37:44 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!typhoon.san.rr.com!not-for-mail Message-ID: <3C34C11F.DE91C451@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A case where Ada defaults to unsafe? References: <3C34BF2C.6030500@mail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 03 Jan 2002 20:38:31 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 1010090311 66.75.151.160 (Thu, 03 Jan 2002 12:38:31 PST) NNTP-Posting-Date: Thu, 03 Jan 2002 12:38:31 PST Organization: Road Runner Xref: archiver1.google.com comp.lang.ada:18487 Date: 2002-01-03T20:38:31+00:00 List-Id: Hyman Rosen wrote: > So in Ada, one could say 'if a /= 0 and b/a > 3' and fall into a > trap that would not happen in C/C++. Discuss? Or, in C, you could say if (func_with_side_effects(1) || func_with_side_effects(2)) {...} and also not get the answer you might expect. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. "This wine goes good with feet."