Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site asgb.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!asgb!devine From: devine@asgb.UUCP (Robert J. Devine) Newsgroups: net.lang.c Subject: Re: Loop "Equivalencies" Message-ID: <823@asgb.UUCP> Date: Thu, 21-Nov-85 15:35:01 EST Article-I.D.: asgb.823 Posted: Thu Nov 21 15:35:01 1985 Date-Received: Sat, 23-Nov-85 10:24:57 EST References: <10200026@ada-uts.UUCP> Organization: Burroughs Corp. ASG, Boulder Colo. Lines: 18 > I'd like to point out what I think is a bug in Kernighan & Ritchie. > My version's copyright is 1978; please excuse this if I have an old > version and newer versions (?) have fixed it. > > [ description about C's problem that stems from the "continue" statement > used in loops and the defined equivalence between for loops and while loops ] The problem is noted in "C A Reference Manual" by Harbison and Steele. This 1984 book offers a much better description of current C than K&R does. Much has been added (enums, structure assignment, "void", etc) since 1978. Buy this book! System V also has a more up-to-date document on C, you should take a look at that because it describes AT&T's implementation. And yes, the "continue" ambiguity is still there... Bob