On Tue, 1 Oct 2013 11:52:16 -0300, Clark Morris wrote:
>
>>greatest value of GOTO is the longjump; the ability to exit a
>>nest of not only compounds, but also blocks and function calls.
>>I pine for this facility in Rexx, POSIX shell, and C.
> 
>IBM COBOL has EXIT PROGRAM and GOBACK both of which can be used with
>nested programs.  The 2002 COBOL standard has EXIT PERFORM CYCLE and
>EXIT PERFORM for PERFORM loops, EXIT PARAGRAPH and EXIT SECTION.
> 
Can each of these name the CYCLE, PERFORM, PARAGRAPH, or SECTION
to be EXITed in case of nesting?  (C and POSIX shell have "continue",
"break", and "return", but these apply only to the innermost loop or call.)

Do these work alike from a separate translation unit?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to