lua-users home
lua-l archive

Re: I'd give my right arm for a continue statement

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


T T <t34www@googlemail.com> writes:
> 2011年1月23日 GrayFace <sergroj@mail.ru>:
>
>> '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

AltStyle によって変換されたページ (->オリジナル) /