lua-users home
lua-l archive

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


I beg for the repeat behaviour to remain unchanged.

David B.

On Tue, Feb 26, 2008 at 4:43 AM, Shmuel Zeigerman <shmuz@actcom.co.il> wrote:
> Roberto Ierusalimschy wrote:
>  > My point was not to present that as a reason to avoid 'continue', but to
>  > present a real example of how simple and innocent changes to a language
>  > can have hidden and pernicious side effects.
>
>  Yes, I was aware of that, just that the change in question proved to be
>  not-so-innocent :)
>
>  While we're on this topic, there's another possibility:
>  introduce 'continue' for 'while' and 'for' loops and make it invalid in
>  'repeat' loops (compile-time error). This would have a benefit of
>  keeping backward compatibility.
>
>  --
>  Shmuel
>