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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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 08:37:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <27085883.0110191714.784d3d25@posting.google.com> <9r25o0$fla$1@nh.pace.co.uk> <9r2f090nu2@drn.newsguy.com> <9r3rdt$d6f$1@nh.pace.co.uk> <3BD7DF3B.1E5F435B@brighton.ac.uk> Subject: Re: Have you ever had a bug caused by... Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 25 Oct 2001 11:36:57 EDT Organization: http://www.newsranger.com Date: Thu, 25 Oct 2001 15:36:57 GMT Xref: archiver1.google.com comp.lang.ada:15185 Date: 2001-10-25T15:36:57+00:00 List-Id: In article <3BD7DF3B.1E5F435B@brighton.ac.uk>, John English says... >Odd, considering how much easier it is for a compiler to optimise out >unnecessary range checks than for a human to try and identify safe >situations and leave out the checks... It's easier for a human to wrap >the variable access in a function which always range checks and which >the compiler can't optimise away, or to omit checking altogether. There's nothing really that odd about it. Back when C was designed it really wasn't all that easy for compilers to do that (they didn't have much memory or CPU to work with). It then was much easier for humans to do their part, as the programs C was designed for weren't all that large. The thing that is odd is that people still think C is a good language to use for developing *today's* software. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.