Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One exit per procedure/function/codeblock to what purpos
Message
From
08/10/2003 19:43:19
 
 
To
08/10/2003 19:21:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835552
Message ID:
00836584
Views:
17
>>- Final trick question: do you support the use of LOOP in DO...ENDDO?
>
>Yes, I use LOOP and EXIT frequently in DO WHILE, SCAN, FOR, etc. They wouldn't be in the language if they weren't meant to be used. For the same reason that a "GO TO" (code line) is NOT in the language.
>I've never used RETURN TO..., which I guess comes close to a GO TO.

I've even used goto in a C program (once) to get to the bottom (single exit point) out of a complex function from somewhere in the middle of some hairy logic. Kept me from having to have all kinds of conditional flags in the logic muddying things in order to get to the exit code gracefully.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform