posted 23 years ago
I'm confused by this answer in JQ+ concerning labeled breaks:
A break statement with label Identifier attempts to transfer control to the enclosing labeled statement that has the same Identifier as its label; this statement, which is called the break target, then immediately completes normally. In this case, the break target need not be a while, do, for, or switch statement.
I'm not sure what they are saying here. I've used breaks in switches, and in loops but have never seen a break target not be a while, do, for, or switch statement with or without a label. Can someone show me an example of this? Or maybe I'm just totally missing what this quote is all about.
Thanks for the help.
Rick