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-19 09:59:22 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: <3D10B886.9507CC32@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> <3d0fb5eb_3@news.bluewin.ch> <3D10952F.17A62CCF@despammed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 19 Jun 2002 16:59:22 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1024505962 66.75.151.160 (Wed, 19 Jun 2002 09:59:22 PDT) NNTP-Posting-Date: Wed, 19 Jun 2002 09:59:22 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.lang.ada:26402 Date: 2002-06-19T16:59:22+00:00 List-Id: Wes Groleau wrote: > > > > A C array does not contain > > >"one element more" on either side. The standard allows setting > > >a pointer to the next element after the end of an array, but > > >such a pointer can not be dereferenced. > > The standard does? But most compilers ignore this, right? The pointer can be dereferenced, of course, but it's "undefined behavior". In other words, the programmer shouldn't do this, because the compiler is allowed to enforce that you don't. Of course, most C compilers implement pointers as raw addresses, so it's generally hard to make sure you're doing the Right Thing that way. -- 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.