lua-users home
lua-l archive

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

On Wed, Jan 13, 2010 at 05:21:04PM -0200, Luiz Henrique de Figueiredo wrote:
> > The VM would have to be more complex to support goto, and thus slower.
> Not really. The VM already uses jumps. If you mean the parser, then ok
> (and there are some semantic trouble points if you add gotos).

Let's see.  You'd have to forbid jumping inside or outside of a
function definition (label scope would be the function anyway), and
also to forbid jumping over a "local" declaration.  Anything else?