On Thu, Aug 31, 2000 at 01:26:26PM -0500, Christopher J. Madsen wrote: > I too would like to see last, next, & redo work with do loops. *Only* do loops or do blocks in general? And what should they do? do { ... last; ... }; # exit the block immediately do { ... next; ... }; # equivalent to last? do { ... redo; ... }; # equivalent to last? These fall right in line with the proposal that the "do" be optional since we can already do these: { ... last; ... } { ... next; ... } { ... redo; ... } And what about continue blocks? We can attach them to bare blocks, but not to do blocks? That's weird. > However, I really don't want to see 'return' become a kind of 'last' > for do{}. How would I return from a subroutine from within a do loop? Indeed. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]
- The distinction between "do BLOCK while COND&qu... Bart Lateur
- Re: The distinction between "do BLOCK whil... Peter Scott
- Re: The distinction between "do BLOCK ... Nathan Torkington
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "d... Bart Lateur
- Re: The distinction between &q... Tom Christiansen
- Re: The distinction betwee... Christopher J. Madsen
- Re: The distinction be... Jonathan Scott Duff
- Re: The distinction be... Christopher J. Madsen
- Re: The distinction be... Jonathan Scott Duff
- Re: The distinction be... Tom Christiansen
- Re: The distinction be... Christopher J. Madsen
- Re: The distinction be... Tom Christiansen
- Re: The distinction be... Christopher J. Madsen
- do BLOCK as inline sub... Uri Guttman
- Re: The distinction between "d... Peter Scott
- Re: The distinction between &q... Christopher J. Madsen
- Re: The distinction betwee... Peter Scott