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,31c0457c1c47fc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-20 12:07:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.bc.home.com.POSTED!not-for-mail Message-ID: <3BD1CA15.6492D999@linuxchip.demon.co.uk> From: Dr Adrian Wrigley X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Have you ever had a bug caused by... References: <27085883.0110191714.784d3d25@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 20 Oct 2001 19:07:09 GMT NNTP-Posting-Host: 24.78.155.97 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.bc.home.com 1003604829 24.78.155.97 (Sat, 20 Oct 2001 12:07:09 PDT) NNTP-Posting-Date: Sat, 20 Oct 2001 12:07:09 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:14974 Date: 2001-10-20T19:07:09+00:00 List-Id: Mike Silva wrote: > Have you ever had a bug caused by accessing off the end of an array? >... > Have you ever had a bug caused by a variable getting set to a value > outside its designed range? These are occasionally the *cause* of a bug. But more often they are the *effect* of a bug. (Maybe it's just semantics, but I think of some items on the list as the result of bugs, not the cause) In C, execution problems can arise due to a bug, and things collapse much later, leading to much confusion and wasted time. In Ada, execution usually fails much earlier because of range checking, leading the programmer to focus on the relevant part of the code. This proximity of cause and effect is a big help debugging Ada. -- Dr Adrian Wrigley