Abrupt completion of the contained Statement is handled in the following manner:
break
with no label, then no further action is taken and the do
statement completes normally.
continue
with no label, then the Expression is evaluated. Then there is a choice based on the resulting value:
true
, then the entire do
statement is executed again.
false
, no further action is taken and the do
statement completes normally.
continue
with label L, then there is a choice:
do
statement has label L, then the Expression is evaluated. Then there is a choice:
true
, then the entire do
statement is executed again.
false
, no further action is taken and the do
statement completes normally.
do
statement does not have label L, the do
statement completes abruptly because of a continue
with label L.
do
statement completes abruptly for the same reason. The case of abrupt completion because of a break
with a label is handled by the general rule (§14.6).