Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!orsvax1!pyrnj!caip!cbmvax!grr From: grr@cbmvax.cbm.UUCP (George Robbins) Newsgroups: net.lang.c Subject: Re: Infinite loops Message-ID: <116@cbmvax.cbmvax.cbm.UUCP> Date: Mon, 21-Apr-86 15:05:31 EST Article-I.D.: cbmvax.116 Posted: Mon Apr 21 15:05:31 1986 Date-Received: Wed, 23-Apr-86 22:27:15 EST References: <117@brl-smoke.ARPA> Reply-To: grr@cbmvax.UUCP (George Robbins) Organization: Commodore Technology, West Chester, PA Lines: 21 In article <117@brl-smoke.ARPA> gwyn@BRL.ARPA (VLD/VMB) writes: > >do ... while(1); >while(1) ... >for(;;) ... > >are all widely-used idioms for unconditional looping in C. >I personally prefer the latter, but the choice is just a >matter of taste. Any reasonable compiler will generate >efficient code for all three constructs. #define loop for(;;) This is a clean way to do it, but be aware that there is no obvious stopping point, and soon C purists will soon be declaring that your code has been tainted by exposure to noxious influences from Algol 68 or worse... -- George Robbins - now working with, uucp: {ihnp4|seismo|caip}!cbmvax!grr but no way officially representing arpa: cbmvax!grr@seismo.css.GOV Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)