🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1293

Re: for(;;) vs. while(1) is a draw

#1293
From: Blair P. Houghton
Date: Fri, 25 May 1990 17:48
12 lines
975 bytes
In article <1990May24.231054.22349@mozart.amd.com> tim@amd.com (Tim Olson) writes:
>K&R *DID* say this -- read the reference manual section about the For
>statement (9.6):
>
>	"Any or all of the expressions may be dropped.  A missing
>	expression-2 makes the implied while clause equivalent to
>	while(1); ..."

Oops.  My bad.  So whose compiler was it that did this?

				--Blair
				  "Grumble."
Technical Details
Message-ID: <5906@buengc.BU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!buengc!bph
References: <5876@buengc.BU.EDU> <12955@smoke.BRL.MIL> <5879@buengc.BU.EDU> <12971@smoke.BRL.MIL> <5897@buengc.BU.EDU> <1990May24.231054.22349@mozart.amd.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!buengc!bph
From: bph@buengc.BU.EDU (Blair P. Houghton)
Newsgroups: comp.std.c
Subject: Re: for(;;) vs. while(1) is a draw
Message-ID: <5906@buengc.BU.EDU>
Date: 25 May 90 17:48:49 GMT
References: <5876@buengc.BU.EDU> <12955@smoke.BRL.MIL> <5879@buengc.BU.EDU> <12971@smoke.BRL.MIL> <5897@buengc.BU.EDU> <1990May24.231054.22349@mozart.amd.com>
Reply-To: bph@buengc.bu.edu (Blair P. Houghton)
Followup-To: comp.std.c
Organization: Boston Univ. Col. of Eng.
Lines: 12