lua-users home
lua-l archive

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

-----Ursprüngliche Nachricht-----
Von: "Frank Meier-Dörnberg" <>
Gesendet: 15.06.2011 14:04:32
An: "Lua mailing list" <>
Betreff: Re: [ANN] Lua 5.2.0 (beta-rc1) now available

>On 13.06.2011 22:27, Alexandre Erwin Ittner wrote:
>> [...]
>> A "label" keyword would be great too, but it will break so much code.
>> [...]
>Yesterday Xavier Wang brought to mind an alternative.
>I'm missing a reaction to that:
>"maybe using a local variable scope for goto destination is better than
>define a (whatever) label statement."
>In my words: Use "local mark" instead of "label mark" or "@mark:"
>I must admit that I have not thought about whether that is semantically
>What are thepros and cons?

If this means a local variable is needed for all jump targets, this will
easily overflow the maximum number of local variables (about 250) if
switch like statements are coded with gotos (possibly generated by a
compiler). And in addition two things are strongly coupled together
(namely gotos and local variables), which are very different things.



Michael Rose
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut!