Re: Perform loop enhancements

From: Richard (riplin_at_Azonic.co.nz)
Date: 10/29/04

  • Next message: Chuck Stevens: "Infinite Loops and Explicit Exits"
    Date: 29 Oct 2004 11:48:56 -0700
    
    

    Peter Lacey <lacey@mb.sympatico.ca> wrote

    > > This seems to be the trigger for where I do my usual discourse on "it
    > > isn't the GOTO that is harmful, it is the label that it requires that
    > > is the probelem", but I won't.
    >
    > Good, I suppose. Why bother composing this?

    Well that's what I thought. Those that would agree with it already
    understand the issue, those that still think that GOTO is OK to use
    wouldn't agree with the discussion.

    > Ranting about the label wouldn't address the subject.

    Labels are very much part of the subject of out-of-line PERFORMs and
    their scope. When labels can possibly exist within the scope (which
    they cannot when PERFORM paragraph is all that is used), there are
    potential problems that don't otherwise exist.


  • Next message: Chuck Stevens: "Infinite Loops and Explicit Exits"

    Relevant Pages

    • Re: change variables
      ... where goto is the most appropriate control structure in C programs. ... The C switch statement could generate a jump table to its case labels ... point of the flow is contrained to be the end of the switch block. ...
      (comp.lang.cobol)
    • Re: Perform Thru/Go to vs. Perform - Compile Speed
      ... > r> is to cater for additional paragraph labels in the scope of the ... > r> a GO TO between labels within the scope (or worse to branch back into ... > r> the scope after a goto out of it). ...
      (comp.lang.cobol)
    • Re: Colon in code?
      ... George Nicholson wrote: ... > Use of line labels and goto's is frowned upon (outside of Error ... > hyperlink definition of them via the entry for the "GoTo" statement. ...
      (microsoft.public.excel.programming)
    • Re: "GOTO considered harmful" considered harmful. Re: New style DO syntax?
      ... Fine, but then generalize the labels to be alphanumerics, perhaps terminated by a single colon. ... The main problem with goto targets in Fortran is not the GOTO, ... "GOTO considered harmful" considered harmful. ... In any case, it seems that the Fortran Standards are in the process of making block constructs more uniform, so constructive discussions here may actually have an influence. ...
      (comp.lang.fortran)
    • Re: How to GOTO
      ... This means that I have need for a Forth GOTO, ... DEFERRED-LABEL is just a CELL with an address to be later ... Predeclaring labels by name is not nice when you have 50 or more labels. ... Hmm, numeric parsing labels might be okay with an extra word RESOLVE-GOTOS, ...
      (comp.lang.forth)