Aazure.818
net.unix-wizards
utzoo!decvax!ucbvax!G:ARPAVAX:CAD:teklabs!tekmdp!azure!andyc
Mon May 10 15:37:47 1982
C documentation bug?
In the C Reference Manual at the end of the Ritchie book in section 9.6
Ritchie describes the 'for' statement as being equivalent to the 'while'
statement as follows:

The 'for' statement has the form
       for (expression-1 ; expression-2 ; expression-3) statement

This statement is equivalent to
       expression-1;
       while (expression-2) {
               statement
               expression-3;
       }

This does not seem to hold when 'statement' is a continue.  In the
while statement, expression-3 will not get executed.  Am I misunderstanding
something?

                       Andy Crump
                       Tektronix, Inc
                       teklabs!tekmdp!azure!andyc

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.