On 5/02/2011 10:56 AM, john gilmore wrote:
outer: do . . . ; . . . inner: do . . . ; . . . innermost: do . . . ; . . . leave ; /* leaves innermost */ . . . leave outer ; . . . end innermost ; . . . end inner ; . . . end outer ;
Syntactic suger (although very nice)! Some might prefer to break heavily nested loops into subroutines because they're easier to grok.
It provides very fine-grained control, much better control than its primitive C analogue, the break statement.
Show me how to do this in REXX or PL/1 http://en.wikipedia.org/wiki/Duff%27s_device.
I conjecture that Mr. Gilmartin was frightened by a GOTO in infancy and that he therefore objects to labels because they can be the targets of GOTOs. He is welcome to this view. His caricatures of REXX are not so defensible. In particular, and here I repeat myself, the notion that a language construct should be avoided because novices can misuse it is a footling one that smacks too much of Big Brother to be allowed to go unremarked here. John Gilmore Ashland, MA 01721-1817 USA ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html