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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32cfbb718858528b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-11 23:51:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!colt.net!newspeer.clara.net!news.clara.net!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Commercial C To Ada 95 compiler Date: Tue, 11 Jun 2002 09:11:42 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3D002D11.CC706952@adaworks.com> <4519e058.0206071148.9b87acf@posting.google.com> <3D0116F3.7254E263@despammed.com> <3D018106.6080004@worldnet.att.net> <3D022877.B3B5CD3A@adaworks.com> <3D053737.476B8185@san.rr.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1023801103 7128 136.170.200.133 (11 Jun 2002 13:11:43 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 11 Jun 2002 13:11:43 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:25778 Date: 2002-06-11T13:11:43+00:00 List-Id: Unless my intent was to figure out the address of the thing located just after X - probably Y in this case. :-) The thing is that it isn't really an error until you are trying to de-reference the thing pointed to by Y. Before that its just incrementing a counter - which might be done for all sorts of reasons none of which may have anything to do with the array X. Its not "normal" programming, so I'd agree that it would be really nice to know when someone is making this kind of error. Its just that this particular case might come under the heading of "No Harm - No Foul" - It may be an error in the code, but one that has no impact on the correct operation of the program. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Darren New" wrote in message news:3D053737.476B8185@san.rr.com... > > Well, in theory > > { char x[3]; char * y = x; > y++; y++; y++; y++; y++; > } > > is illegal. You're indexing off the end of the x array. > > Of course, very few compilers enforce this. >