Re: Report enhancements
From: Robert Wagner (spamblocker-robert_at_wagner.net)
Date: 10/28/04
- Next message: Richard: "Re: OT English Language, Program or Programme"
- Previous message: Richard: "Re: Standard and COBOL file formats"
- In reply to: Richard: "Re: Report enhancements"
- Next in thread: Chuck Stevens: "Re: Report enhancements"
- Reply: Chuck Stevens: "Re: Report enhancements"
- Reply: Lueko Willms: "Re: Report enhancements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 28 Oct 2004 07:22:36 GMT
On 27 Oct 2004 20:15:33 -0700, riplin@Azonic.co.nz (Richard) wrote:
>I agree that PERFORM INDEFINITE TIMES should be a special case where
>INDEFINITE is a reserved word that acts as if the value is never
>reached, but for all practical purposes this can be used now without
>waiting for a standards change.
>
>(and isn't ugly like UNTIL ZERO NOT EQUAL ZERO).
This thread is like a debate over which brand of drain cleaner is best
tasting. All choices are ugly because there's no such thing as an
infinite loop. I want to see the _normal_ exit conditions in UNTIL,
for example PERFORM UNTIL USER-RESPONDED OR TIME-EXPIRED.
If there are exception conditions that can cause a premature exit, I
have no problem with using EXIT PERFORM in those cases.
The fact that no syntax works for out-of-line perform should tell you
the concept is flawed. For example PERFORM FOO UNTIL EXIT is truly an
infinite loop, therefore a bug (without a GO TO). I would expect the
compiler to diagnose it as syntax error.
Having said that, I'm surprized no one suggested this, which works on
Micro Focus today:
PERFORM UNTIL FALSE [AND ...]
PERFORM UNTIL TRUE [OR ...]
They could legitimately be used in debugging, similar to IF FALSE AND
... to temporarily comment out code and IF TRUE OR ... to make it
execute unconditionally.
- Next message: Richard: "Re: OT English Language, Program or Programme"
- Previous message: Richard: "Re: Standard and COBOL file formats"
- In reply to: Richard: "Re: Report enhancements"
- Next in thread: Chuck Stevens: "Re: Report enhancements"
- Reply: Chuck Stevens: "Re: Report enhancements"
- Reply: Lueko Willms: "Re: Report enhancements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|