comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: Look what I caught! was re:Ada paper critic
Date: Mon, 17 Jun 2002 23:14:55 GMT
Date: 2002-06-17T23:14:55+00:00	[thread overview]
Message-ID: <3D0E6D8B.C2EF98D3@san.rr.com> (raw)
In-Reply-To: 3d0e5750_2@news.bluewin.ch

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.



  reply	other threads:[~2002-06-17 23:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 17:35 Look what I caught! was re:Ada paper critic Alderson, Paul A.
2002-06-17 18:31 ` Darren New
2002-06-17 21:40 ` Vinzent Hoefler
2002-06-17 23:14   ` Darren New [this message]
2002-06-18 14:49     ` Hyman Rosen
2002-06-18 22:36     ` Vinzent Hoefler
2002-06-18 13:28   ` Marin David Condic
2002-06-24 19:17     ` Vinzent Hoefler
2002-06-18 19:16   ` Kevin Cline
2002-06-18 22:36     ` Vinzent Hoefler
2002-06-19 14:29       ` Wes Groleau
2002-06-19 16:59         ` Darren New
2002-06-19 17:48           ` Wes Groleau
2002-06-19 17:56             ` Darren New
2002-06-19 17:11         ` Frank J. Lhota
2002-06-19 19:31           ` Robert A Duff
2002-06-19 20:02             ` Hyman Rosen
2002-09-24 15:23               ` Matthew Heaney
2002-06-19 19:37         ` Robert A Duff
2002-06-19 13:52 ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox