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,e95e8407f65e1cfb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-17 16:14:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D0E6D8B.C2EF98D3@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: Look what I caught! was re:Ada paper critic References: <3d0e5750_2@news.bluewin.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 17 Jun 2002 23:14:55 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1024355695 66.75.151.160 (Mon, 17 Jun 2002 16:14:55 PDT) NNTP-Posting-Date: Mon, 17 Jun 2002 16:14:55 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:26188 Date: 2002-06-17T23:14:55+00:00 List-Id: Vinzent Hoefler wrote: > No. Its not a long time ago (was it in c.l.a.?) I read that C arrays > are one element more on the right and left side because this becomes > handy in using some algorithms that intentionally might get out of > bounds. You're probably thinking of what I said, which was that a pointer into an array is allowed to be increased to point off the end of the array by one element, but you can't access it. Not because it might intentionally get out of bounds, but because you do things like while (*s++ == 0) ; meaning that you never *reference* the pointer when it's out of bounds, but you do point out of bounds. You don't necessarily get to point two out of bounds, tho. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. ** http://home.san.rr.com/dnew/DNResume.html ** ** http://images.fbrtech.com/dnew/ ** My brain needs a "back" button so I can remember where I left my coffee mug.