[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Implementing GOTO/GOSUB
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 13 Sep 2004 14:13:10 -0300
> I tried to implement GOTO/GOSUB functionality in Lua.
An year ago, prompted by a similar request here in lua-l, I wrote a simple
patch for luac that did the right thing for the code below:
do return end
That is, it turned __GOTO into JMPs and __LABEL into NOPS.
This worked great for GOTO but I don't think it will work for GOSUB ... RETURN.