[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua code generation vs. goto
- From: Shmuel Zeigerman <shmuz@...>
- Date: Fri, 25 Jul 2008 12:41:50 +0300
Alexander Gladysh wrote:
My code generator sees data flow roughly as follows (pseudo-representation):
if condition-1 then goto label "B"
goto label "A"
That is, unconditonal jumps may be both up and down on command flow.
Use tail calls?
local A, B
A = function()
if condition_1 then return B() end
B = function()