Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: #define forever for(;;) Message-ID: <1990Oct22.230706.24401@zoo.toronto.edu> Organization: U of Toronto Zoology References: <250@motto.UUCP> Date: Mon, 22 Oct 90 23:07:06 GMT In article <250@motto.UUCP> andrew@motto.UUCP (Andrew Walduck) writes: >>#define ever (;;) >>for ever >> { >> ... >Is this really defined to loop forever?? Does ANSI guarantee this >behaviour? It has been a property of C since the start that "for (;;) " is an infinite loop. ANSI, naturally, has reaffirmed this. Incidentally, "#define ever (;;)" is a habit that most C programmers grow out of. It adds nothing to the readability and tends to confuse auxiliary tools like paragraphers and cross-referencers. -- The type syntax for C is essentially | Henry Spencer at U of Toronto Zoology unparsable. --Rob Pike | henry@zoo.toronto.edu utzoo!henry