Breaking out of multiple loops
ixid
nuaccount at gmail.com
Wed Sep 5 11:24:05 PDT 2012
A goto is actually better than "break 3" because you can modify
inner loops and the goto will still take you to the right place,
the "break 3" would take you to the wrong place if you change the
number of loops. There's nothing wrong with goto in this context
and as others have said we already have break label and continue
label which either break or continue the labelled loop.
More information about the Digitalmars-d
mailing list