iteration-statement:
while ( condition ) statement
do statement while ( expression ) ;
for ( for-init-statement _;_ conditionopt ; expressionopt ) statement
^^^
I found out it remained repaired in N2369.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std...@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
The semicolon is not missing, it is automatically included in the
for-init-statement (either an expression-statement or a simple-declaration,
both of which end in a semicolon). There is even a note explaining this in
6.5/1, both in 1998 and 2003 versions.
--
------------- Matti Rintala ------------ matti....@tut.fi ------------
Painting is the art of inclusion. Photography is an art of exclusion.
>From memory, I believe that a for-init-statement always ends in a
semicolon and this "omission" is therefore deliberate.
-- James