[futurebasic] Re: [FB] Exiting LONG IF ... END IF

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2002 : Group Archive : Group : All Groups

From: "H. Gluender" <h@...>
Date: Wed, 27 Nov 2002 12:19:42 +0100
Laurent S. asked about the FB^3 EXIT structures:

>...I notice that EXIT"<LABEL>" syntax is now strongly
>recommended in the doc for exiting a LONG IF ... END IF
>block.
>
>The funny thing is that for a number of years before EXIT
>appeared I bent over backwards to avoid exiting such
>blocks by a GOTO"<LABEL>" statement.  Later on, I did a
>lot of tests to convince myself that such GOTO"<LABEL>"
>statemants are OK (with reasonable provisos in the docs).
>The result is that I have a lot of old code with such
>GOTO exits.
>
>Whence my question: Is this use of EXIT"<LABEL>"
>just a precaution allowing for future Mac/FB evolution,
>or is it an urgent bug control measure *today*?

My related question is:

Why does FB^3 provide two calls per structure ?
(As far as I remember, there is no difference.)

EXIT FOR
EXIT NEXT

EXIT DO
EXIT UNTIL

EXIT WHILE
EXIT WEND

EXIT CASE

Why isn't there an EXIT SELECT ?

Best,
-- 


                   Herbie

          ------------------------

          <http://www.gluender.de>