The PL/I leave statement is very different from the C continue and that ilk.

Consider

outer: . . . ;
  . . .
  nested: . . .  ;
    . . .
    innermost: . . .  ;
       . . .
       . . . leave ;  /* .leaves current group, here innnermost */
             if . . . then leave outer ;  /* leaves outer */
             else leave nested ;  /* leaves nested */
    end innermost ;
    . . .
  end nested ;
  if . . . then leave ;  /* leaves current group, here outer */
  . . .
end outer ;

which permit any nesting, even some unattractive ones, to be exited
from cleanly.

Paul Gilmartin will object to these [and other] uses of labels, but
they are in fact innocuous.

John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
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