[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Abolishing the numeric-for
- From: Fabio Mascarenhas <mascarenhas@...>
- Date: Tue, 25 May 2010 16:55:36 -0300
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
>
- References:
- Abolishing the numeric-for, Jonathan Castello
- Re: Abolishing the numeric-for, M Joonas Pihlaja
- Re: Abolishing the numeric-for, Jonathan Castello
- Re: Abolishing the numeric-for, M Joonas Pihlaja
- Re: Abolishing the numeric-for, Fabio Mascarenhas
- Re: Abolishing the numeric-for, Roberto Ierusalimschy
- Re: Abolishing the numeric-for, Fabio Mascarenhas
- Re: Abolishing the numeric-for, Roberto Ierusalimschy
- Re: Abolishing the numeric-for, Fabio Mascarenhas
- Re: Abolishing the numeric-for, Roberto Ierusalimschy