Both break and continue can branch to a label, but the text only mentions for, while, and do loops. Foreach loops should also be included. Dmd supports it.
(In reply to comment #0) > Both break and continue can branch to a label, but the text only mentions for, > while, and do loops. Foreach loops should also be included. Dmd supports it. It's mentioned just above the switch statement
(In reply to comment #1) > (In reply to comment #0) > > Both break and continue can branch to a label, but the text only mentions for, > > while, and do loops. Foreach loops should also be included. Dmd supports it. > > It's mentioned just above the switch statement The text for ContinueStatement is: If continue is followed by Identifier, the Identifier must be the label of an enclosing while, for, or do loop, and the next iteration of that loop is executed. It is an error if there is no such statement. It doesn't mention foreach and it should. Ditto with BreakStatement.
changeset 1497
Fixed DMD1.061 and DMD2.046.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル