<p>Am 13.10.2015 03:34 schrieb "Flávio Etrusco" <<a href="mailto:flavio.etrusco@gmail.com">flavio.etrusco@gmail.com</a>>:<br>
><br>
> On Mon, Oct 12, 2015 at 7:15 PM, David W Noon<br>
> <<a href="mailto:david.w.noon@googlemail.com">david.w.noon@googlemail.com</a>> wrote:<br>
> > -----BEGIN PGP SIGNED MESSAGE-----<br>
> > Hash: SHA1<br>
> ><br>
> > On Mon, 12 Oct 2015 15:11:18 -0400, Wkitty42 (<a href="mailto:wkitty42@windstream.net">wkitty42@windstream.net</a>)<br>
> > wrote about "Re: [fpc-devel] Fwd: While - Otherwise Statement" (in<br>
> > <<a href="mailto:561C05D6.4010403@windstream.net">561C05D6.4010403@windstream.net</a>>):<br>
> ><br>
> >> On 10/12/2015 02:02 PM, Dmitry Boyarintsev wrote:<br>
> >>><br>
> >>> The next step would probably be controlled "break", where a user<br>
> >>> would be able to specify how many nested loops needed to broken<br>
> >>> from.<br>
> ><br>
> > Hi Mark,<br>
> ><br>
> > You might have seen me write things like this in the old OS2PROG echo<br>
> > of Fidonet some 20+ years ago. ... :-)<br>
> ><br>
> > The only language I know that offers that level of control is PL/I,<br>
> > where the break statement is coded as LEAVE.  It is handled by<br>
> > labelling the loop control statement and coding the required label in<br>
> > the LEAVE statement. For example:<br>
> ><br>
> >    loop_1: DO i = 1 TO m;<br>
> >       loop_2 : DO j = 1 TO n;<br>
> >          loop_3: DO k = 1 TO p;<br>
> >            ...<br>
> >            IF some_condition THEH<br>
> >               LEAVE loop_3;[...]<br>
><br>
> If I'm not missing something, Java implements 'break' just like this.<br>
> I'd like such enhancement, but right now is there any reason to avoid<br>
> 'goto' besides the bad karma?</p>
<p>The intrafunctional gotos not really. But the interfunctional ones (modeswitch nonlocalgoto in 2.7.1+) might mess with managed types ;)</p>
<p>Regards,<br>
Sven</p>