[fpc-devel] Fwd: While - Otherwise Statement

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


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

On Mon, 12 Oct 2015 21:32:07 -0400, Wkitty42 (wkitty42 at windstream.net)
wrote about "Re: [fpc-devel] Fwd: While - Otherwise Statement" (in
<561C5F17.4070109 at windstream.net>):

[snip]
> that looks very much like what some would consider goto
> statements... does the leave return to the top of the previous loop
> or does it drop to the next statement in the previous loop?

It leaves the loop at the END statement that matches the DO statement
as labelled. So it goes to the next statement in the surrounding loop.

>> If the label is omitted then the immediately containing loop is
>> left.
> 
> "immediately containing loop" meaning loop_3 if we're in loop_3?

Correct. It's the same as break.

> yup! and i did catch the THEH->THEN oops... no problems there O:)

Ageing eyes, I'm afraid. When I remove my contact lenses at night I
have very distorted corneas (keratoconus) and cannot easily
distinguish an H from an N. ... :-(
- -- 
Regards,

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

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

iEYEARECAAYFAlYdJV4ACgkQogYgcI4W/5QZKgCaA7lhDyhW/D0E+ATdBhrkzyIM
YrsAmwYelE+svkFxHDZvKLP3AJ/HZ8DN
=WNCc
-----END PGP SIGNATURE-----



More information about the fpc-devel mailing list