Jonathan Scott Duff writes:
 > 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?

Well, I suppose that for consistency's sake they should work with do
blocks in general, but I don't have strong feelings about that.  The
do loops are what I really care about.  As for the return value, it
should probably be undef (or possibly the result of the previous
expression, but that might get hairy).  As I said, I don't expect to
use 'last' in cases where I care what do returns.

 >        do { ... last; ... };         # exit the block immediately
 >        do { ... next; ... };         # equivalent to last?
 >        do { ... redo; ... };         # equivalent to last?

Umm, wouldn't redo be equivalent to 'goto begin'?

          do { begin: ... goto begin; ... }; # equivalent to redo

-- 
Chris Madsen              http://www.trx.com      [EMAIL PROTECTED]
TRX Technology Services                                 (214) 346-4611

Reply via email to