Re: GoTo in Java
- From: Howard Brazee <howard@xxxxxxxxxx>
- Date: Fri, 20 Jan 2006 12:54:19 -0700
On Fri, 20 Jan 2006 11:36:57 -0800, "Chuck Stevens"
<charles.stevens@xxxxxxxxxx> wrote:
>I agree, you didn't advocate it; others seem to be of the opinion that it'd
>be a worthwhile addition, and my response to that is that I think it's a Bad
>Idea (and not merely Not a Good Idea). There's noplace to put the label in
>the syntax of an inline PERFORM without simultaneously introducing semantic
>and/or syntactic ambiguities.
The syntax would have to be changed.
Example
LABEL INNER PERFORM UNTIL IS-TRUE
LABEL MIDDLE PERFORM UNTIL X = 3
PERFORM UNTIL MY-EOF
PERFORM OUTSIDE-PARAGRAPH
IF FOUND-IT EXIT MIDDLE
END-IF
END-PERFORM
END-PERFORM
END-PERFORM.
Other constructions would need to be considered if this functionality
was to be added to the language for instance, if we had that, this
should be optional:
LABEL INNER PERFORM UNTIL IS-TRUE
LABEL MIDDLE PERFORM UNTIL X = 3
PERFORM UNTIL MY-EOF
PERFORM OUTSIDE-PARAGRAPH
IF FOUND-IT EXIT MIDDLE
END-IF
END-PERFORM
END-PERFORM MIDDLE
END-PERFORM INNER
.
- Follow-Ups:
- Re: GoTo in Java
- From: Chuck Stevens
- Re: GoTo in Java
- References:
- GoTo in Java
- From: Howard Brazee
- Re: GoTo in Java
- From: Peter Lacey
- Re: GoTo in Java
- From: Howard Brazee
- Re: GoTo in Java
- From: Tiberiu Gociu
- Re: GoTo in Java
- From: Howard Brazee
- Re: GoTo in Java
- From: Chuck Stevens
- Re: GoTo in Java
- From: Michael Wojcik
- Re: GoTo in Java
- From: Chuck Stevens
- Re: GoTo in Java
- From: Michael Wojcik
- Re: GoTo in Java
- From: Chuck Stevens
- GoTo in Java
- Prev by Date: Re: GoTo in Java
- Next by Date: Re: GoTo in Java
- Previous by thread: Re: GoTo in Java
- Next by thread: Re: GoTo in Java
- Index(es):