File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ $(GNAME WhileStatement):
301
301
$(D while $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
302
302
)
303
303
304
- $(P While statements implement simple loops .)
304
+ $(P A $(I While Statement) implements a simple loop .)
305
305
306
306
$(P $(EXPRESSION) is evaluated and must have a type that can be converted to a
307
307
boolean. If it's true the $(PSSCOPE) is executed. After the $(PSSCOPE) is
@@ -313,12 +313,19 @@ int i = 0;
313
313
while (i < 10)
314
314
{
315
315
foo(i);
316
- i++ ;
316
+ ++i ;
317
317
}
318
318
---
319
319
320
- $(P A $(GLINK BreakStatement) will exit the loop. A $(GLINK ContinueStatement)
321
- will transfer directly to evaluating $(EXPRESSION) again.)
320
+ $(P A $(GLINK BreakStatement) will exit the loop.)
321
+
322
+ $(P A $(GLINK ContinueStatement) will transfer directly to evaluating $(EXPRESSION) again.)
323
+
324
+ $(P A $(I While Statement) is equivalent to:)
325
+
326
+ ---
327
+ for (; Expression; ) ScopeStatement
328
+ ---
322
329
323
330
$(H2 $(LEGACY_LNAME2 DoStatement, do-statement, Do Statement))
324
331
You can’t perform that action at this time.
0 commit comments