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,FREEMAIL_FROM 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-14 08:09:42 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!proxad.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!ciril.fr!news.ujf-grenoble.fr!univ-lyon1.fr!news.ens-lyon.fr!news.imag.fr!not-for-mail From: Matthieu Moy Newsgroups: comp.lang.ada Subject: Re: A case where Ada defaults to unsafe? Date: 14 Jan 2002 17:09:33 +0100 Organization: Verimag Message-ID: References: <3C34BF2C.6030500@mail.com> <3C34D252.4070307@mail.com> NNTP-Posting-Host: ubaye.imag.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: trompette.imag.fr 1011024573 7130 129.88.43.88 (14 Jan 2002 16:09:33 GMT) X-Complaints-To: abuse@imag.fr NNTP-Posting-Date: 14 Jan 2002 16:09:33 GMT X-Home-Page: http://www-ensimag.imag.fr/eleves/Matthieu.Moy/ X-Face: %xEb27l:C~bcH,tGGRk8m'o_}XBMb*NoIbS$sp(:3s+l@PwMH+C*7Vf@Y_]%rP)*/'`Lpt[O9C;jbVo?Qp User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:18910 Date: 2002-01-14T16:09:33+00:00 List-Id: Hyman Rosen writes: > Frank J. Lhota wrote: > > > The situation is quite similar in C/C++; if you use the siumpler & and | > > operators, they do not short-circuit. In either C/C++ or Ada, experienced > > programmers know what needs to be done in order to get short-circuiting. > > > In C/C++ "everyone" knows that & and | are for bit twiddling and && and || > are for combining logical expressions. But in Java, which is supposed to look like C++, | and & are what Frank said they were. That may be the origin of the mistake. -- | Matthieu MOY