A good idea, but why impose the extra paragraph-name per SECTION?
procedure division.
main section.
mainline.
perform one
perform two
goback
.
one section.
[...do something...]
exit section
.
two section.
[...do something else...]
exit section
.
You don't need the EXIT SECTION in the "MAIN SECTION", because MAIN is never
PERFORMed, adding a paragraph doesn't mess anything (as long as EXIT PARAGRAPH
isn't in there...).
Adding paragraph-names to SECTIONs is just an invitation for the next person
along to use GO TO if they feel like it, and they are not needed to make the
protection work.
It's a good idea.
Of course, if the SECTION has other labels, nothing to stop someone doing the
other thing, which is including it accidentally "within" a SECTION rather than
appended to it. If they are SECTIONs without labels, you could make them all
paragraphs, anyway (with no need for "exit paragraph" unless you want to
protect against someone appending a bunch of code into a paragraph by
accident... going too far).
I don't think an RFE stands a chance. How would you compile existing code?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN