[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Patch for continue in 5.1
- From: Linker <linker.m.lin@...>
- Date: Fri, 12 Jun 2009 19:13:00 +0800
I think the tail-call is better then the "continue" key-word!
On 6/11/09, Peter Cawley <lua@corsix.org> wrote:
> As discussed in the future of Lua thread, one way of adding a
> "continue" statement to the language was to allow it in all cases,
> except when it causes initialisation of a variable used in an until
> clause to be skipped. The included patch is provided so that
> discussions on this approach can be enhanced by experience of
> experimenting with the approach.
>
> Patch against 5.1.4: http://www.corsix.org/luacontinue/continue.patch
> Test cases which should all work:
> http://www.corsix.org/luacontinue/continue_valid.lua
> Test cases which should not work:
> http://www.corsix.org/luacontinue/continue_invalid.lua
>
--
Sent from my mobile device
Regards,
Linker Lin
linker.m.lin@gmail.com