
20 Jan
2009
20 Jan
'09
9:39 p.m.
vicente.botet wrote:
for (VARS DECLARATION, bool __continue=true; __continue; __continue=false)
I'm afraid this is not valid syntax. The first clause of the for-statement is a for-init-statement, which can be either an expression with a semicolon, or a simple-declaration. A simple-declaration lets you declare any number of variables, but they must all have the same declspec, i.e. the same fundamental type (with variations like "pointer to", "array of" or "function returning"). In other words, you cannot declare an arbitrary variable plus a bool in the same for-init-statement. Sebastian