@@ -385,12 +385,12 @@ $(GNAME Increment):
385
385
386
386
$(P $(I Initialize) is executed.
387
387
$(I Test) is evaluated and must have a type that
388
- can be converted to a boolean. If it's true the
389
- statement is executed. After the statement is executed ,
390
- the $(I Increment) is executed.
391
- Then $(I Test) is evaluated again, and if true the
392
- statement is executed again. This continues until the
393
- $(I Test) evaluates to false.
388
+ can be converted to a boolean. If *Test* is ` true` the
389
+ *ScopeStatement* is executed. After execution ,
390
+ $(I Increment) is executed.
391
+ Then $(I Test) is evaluated again, and if ` true` the
392
+ *ScopeStatement* is executed again. This continues until the
393
+ $(I Test) evaluates to ` false` .
394
394
)
395
395
396
396
$(P A $(GLINK BreakStatement) will exit the loop.
@@ -400,7 +400,7 @@ $(GNAME Increment):
400
400
401
401
$(P A $(I ForStatement) creates a new scope.
402
402
If $(I Initialize) declares a variable, that variable's scope
403
- extends through the end of the for statement . For example:
403
+ extends through *ScopeStatement* . For example:
404
404
)
405
405
406
406
--------------
@@ -418,7 +418,7 @@ for (int i = 0; i < 10; i++)
418
418
}
419
419
--------------
420
420
421
- $(P Function bodies cannot be empty:)
421
+ $(P *ScopeStatement* cannot be an empty statement :)
422
422
423
423
--------------
424
424
for (int i = 0; i < 10; i++)
@@ -433,9 +433,9 @@ for (int i = 0; i < 10; i++)
433
433
}
434
434
--------------
435
435
436
- $(P The $(I Initialize) may be omitted (although the trailing $(D ;) is still required ).
437
- $(I Test) may also be omitted, and if
438
- so, it is treated as if it evaluated to true.)
436
+ $(P $(I Initialize) may be just $(D ;).
437
+ $(I Test) may be omitted, and if
438
+ so, it is treated as if it evaluated to ` true` .)
439
439
440
440
$(BEST_PRACTICE Consider replacing $(I ForStatements) with
441
441
$(DDSUBLINK spec/statement, foreach-statement, Foreach Statements) or
0 commit comments