lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

T T <> writes:

> 2011/1/23 GrayFace <>:
>> 'Continue' checks conditions of all other loops, so it would be very
>> very strange if it's different for repeat..until.
>> Not to mention all other languages.
> Then it could be named 'reloop' instead of 'continue' or whatever else
> is deemed appropriate.  This is really of secondary importance to this
> discussion.

The "continue" for for-loops would jump to the iteration construct, not
the top of the loop body (as reloop would).

It would be conceivable to have both redo as well as continue (they
would both make some sort of sense in a for loop), and not allow
continue at all for repeat..until.

I don't like that all too much, but it would also make sense.

David Kastrup