Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: Loop "Equivalencies" Message-ID: <6156@utzoo.UUCP> Date: Wed, 20-Nov-85 14:55:48 EST Article-I.D.: utzoo.6156 Posted: Wed Nov 20 14:55:48 1985 Date-Received: Wed, 20-Nov-85 14:55:48 EST References: <10200026@ada-uts.UUCP> Organization: U of Toronto Zoology Lines: 13 > I'd like to point out what I think is a bug in Kernighan & Ritchie. > ...[equivalence of "for" to "while"]... > This is not true if "statement" is a block which contains a "continue" > since, in the first case, "expr3", is executed after the continue but > is not in the second case. > ... > Am I missing something? Only a more up-to-date C Reference Manual, actually. Yes, this was a bug in K&R, and it has been corrected in more recent editions of the CRM. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry