lua-users home
lua-l archive

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


On Thu, Jun 11, 2009 at 11:43 PM, Edgar Toernig<froese@gmx.de> wrote:
> Nice patch.  Could you test this case, please:
>
>        repeat
>            do
>                local p = 1
>                continue
>            end
>            local q = 2
>        until q == 1
>        print "FAIL"
>
> Ciao, ET.
>
Patch and test cases updated, thanks for pointing that out.

Linker Lin: Certainly, there are some situations which can be solved
using both tail calls and "continue", but there are other situations
in which "continue" is the 'obvious' solution and tail calls are not
appropriate. Tail calls are certainly more interesting than
"continue", and can be better in certain situations, but I do not
think that is a strong argument against "continue".

Attachment: continue.patch
Description: Binary data