[fpc-devel] Fwd: While - Otherwise Statement

David W Noon david.w.noon at googlemail.com
Tue Oct 13 17:31:04 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 12 Oct 2015 22:34:03 -0300, Flávio Etrusco
(flavio.etrusco at gmail.com) wrote about "Re: [fpc-devel] Fwd: While -
Otherwise Statement" (in
<CAJvBmOZTakAS-n=ZY+swh1-ehz-iWKre6esgmyQG9=XvzGALrA at mail.gmail.com>):

> On Mon, Oct 12, 2015 at 7:15 PM, David W Noon 
> <david.w.noon at googlemail.com> wrote:
[snip]
>> loop_1: DO i = 1 TO m; loop_2 : DO j = 1 TO n; loop_3: DO k = 1
>> TO p; ... IF some_condition THEN LEAVE loop_3;[...]
> 
> If I'm not missing something, Java implements 'break' just like
> this.

Last time I coded any significant amount of Java it still used the
C/C++ syntax -- but that was 10 or 11 years ago.

> I'd like such enhancement, but right now is there any reason to
> avoid 'goto' besides the bad karma?

I view it largely as "the curse of Edsgar Dijkstra". A very short
range goto should not be a real problem.
- -- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.noon at googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlYdI7gACgkQogYgcI4W/5QdGACgt7fbezm0wbDDASxjINbUI/tP
rN0AnRSl7Ja7Sk3nIRGPqwQQUvAS0AqJ
=AQvj
-----END PGP SIGNATURE-----



More information about the fpc-devel mailing list