[luatex] Behavior of node lists.

Paul Isambert zappathustra at free.fr
Mon Jul 4 10:02:19 CEST 2011

Le 04/07/2011 09:44, Taco Hoekwater a écrit :
> On 07/04/2011 09:42 AM, luigi scarso wrote:
>> of course no, but it's a matter of style.
>> I'm always in trouble  when I modify the table that is the argument of
>> a for loop,
>> I mean something like
>> for k,v in pairs(my_table) do
>>    modify(my_table)
>> end
> Exactly. Do not do that, please.

Yes, I know it wasn't such a good idea. However you'd told me once, 
Taco, that removing nodes in a list you're traversing is harmless, but 
perhaps I misunderstood you. Now I obediently use a while loop and set 
the next node to be inspected by hand :)

What about the second problem?


More information about the luatex mailing list