Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!julius.cs.uiuc.edu!apple!hercules!fernwood!dumbcat!marc From: marc@dumbcat.sf.ca.us (Marco S Hyman) Newsgroups: comp.lang.c++ Subject: Re: FORever Message-ID: <215@dumbcat.sf.ca.us> Date: 4 Oct 90 04:26:08 GMT References: <1990Sep27.150948.9109@sco.COM> <212@dumbcat.sf.ca.us> <11410@alice.att.com> Organization: MH Software, Hayward, Ca. Lines: 26 In article <11410@alice.att.com> ark@alice.att.com (Andrew Koenig) writes: In article <212@dumbcat.sf.ca.us> I wrote: > Do you really want to break all the existing code that does something > like > for (int i=10; i<13; ++i) { > if (x[i] == magicValue) { > break; > } > } > if (i >= 13) { > // we didn't find magicValue > } Thanks to Andrew (and the others who send e-mail) for pointing out my stupid slip -- it is not and never has been C code. But the question still remains -- does the C++ community favor dissallowing the above code? I've seen this style used in C++ programs. (I didn't like it when I saw it, either). // marc -- // marc@dumbcat.sf.ca.us // {ames,decwrl,sun}!pacbell!dumbcat!marc