lua-users home
lua-l archive

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


Yes, that is what I noticed right after hitting "Send". The
alternatives I came up with are not very elegant, either (a
self-modying opcode, or storing the "kind" of the loop in an extra
register).

--
Fabio Mascarenhas


On Tue, May 25, 2010 at 4:52 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Sorry if the description was not clear, what I meant is that a statement like:
>>
>> for var_1, ···, var_n in explist do
>>   <block>
>> end
>>
>> would be equivalent to the code:
>>
>> [...]
>
> It duplicates the <body> of all for loops in the program? Not very
> "space conscious"...
>
> -- Roberto
>