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-25 04:29:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!lon1-news.nildram.net!195.8.68.195.MISMATCH!newspeer.clara.net!news.clara.net!peer.news.eu-x.com!server2.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: Have you ever had a bug caused by... Date: Thu, 25 Oct 2001 10:36:43 +0100 Organization: University of Brighton Message-ID: <3BD7DD2B.A8FD8448@brighton.ac.uk> References: <27085883.0110191714.784d3d25@posting.google.com> NNTP-Posting-Host: pc2je.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1004005332 26888 193.62.183.154 (25 Oct 2001 10:22:12 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 25 Oct 2001 10:22:12 GMT X-Mailer: Mozilla 4.7 [en-gb] (Win95; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:15174 Date: 2001-10-25T10:22:12+00:00 List-Id: Mike Silva wrote: > > While discussing (er, pushing) Ada with some C-coding co-workers today > I asked a question to which I knew the answer (always the best kind!): > "Have you ever had a bug caused by accessing off the end of an > array?" Well, of course, they all had to say yes. Then I started > thinking of other bugs that they would have to admit to, and which > wouldn't occur in Ada. Nothing new here (Ada prevents many bugs...), > but I thought it would be fun and useful to develop a group list as an > Ada advocacy tool. For example: > > Have you ever had a bug caused by accessing off the end of an array? What about: Have you ever had a bug caused by a one-character typo? E.g.: if (a = 0) { ... } or: while (x); { ... } ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.comp.it.bton.ac.uk/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------