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: 11232c,59ec73856b699922 X-Google-Attributes: gid11232c,public X-Google-Thread: 1108a1,59ec73856b699922 X-Google-Attributes: gid1108a1,public X-Google-Thread: fdb77,5f529c91be2ac930 X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,899fc98b2883af4a X-Google-Attributes: gidf43e6,public X-Google-ArrivalTime: 2003-05-19 01:46:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!144.212.100.101.MISMATCH!newsfeed!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!dax.net!juliett.dax.net!not-for-mail Newsgroups: comp.lang.java.advocacy,comp.object,comp.lang.ada,misc.misc,comp.software-eng Subject: Re: Quality systems (Was: Using Ada for device drivers? (Was: the Ada mandate, and why it collapsed and died)) References: <9fa75d42.0304230424.10612b1a@posting.google.com> <9fa75d42.0305091549.48b9c5d9@posting.google.com> <7507f79d.0305121629.5b8b7369@posting.google.com> <9fa75d42.0305130543.60381450@posting.google.com> <254c16a.0305140549.3a87281b@posting.google.com> <9fa75d42.0305141747.5680c577@posting.google.com> <254c16a.0305160425.3bb89749@posting.google.com> <1053091306.979352@master.nyc.kbcfp.com> <7vaddj8k3d.fsf@vlinux.voxelvision.no> From: Ole-Hjalmar Kristensen Message-ID: <7v65o78gtv.fsf@vlinux.voxelvision.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 19 May 2003 08:46:06 GMT NNTP-Posting-Host: 193.216.12.150 X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 1053333966 193.216.12.150 (Mon, 19 May 2003 10:46:06 MET DST) NNTP-Posting-Date: Mon, 19 May 2003 10:46:06 MET DST Organization: Tele2 Norway AS Public Access Xref: archiver1.google.com comp.lang.java.advocacy:64151 comp.object:63680 comp.lang.ada:37507 misc.misc:14285 comp.software-eng:19291 Date: 2003-05-19T08:46:06+00:00 List-Id: Hyman Rosen writes: > Ole-Hjalmar Kristensen wrote: > > Hyman Rosen writes: > >> for (i = c.begin(); i != c.end(); ++i) > > Yes, provided you get your termination condition of the loop right. > > Huh? That's the termination condition, right there in the middle. > When you loop over a container, you start at begin(), and quit at end(). > A small typo, and the loop will probably not do what you want. Yes, I know the probability is very low. What stops someone from modifying i inside the loop? Also, begin() and end() only applies to STL type containers, not to plain arrays. The only thing I'm saying is that C/C++ has no equivalent of the Ada for loop. The plain loop .... end loop is the equivalent of the C for loop. -- Ole-Hj. Kristensen ****************************************************************************** * You cannot consistently believe this sentence. ******************************************************************************