[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "changing" a table in for loop
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 12 Aug 2002 16:41:49 -0300 (EST)
>Do I
>need to create another table to copy the changed values into, to avoid
>undefined behavior?
Yes.
>I'm not sure if changing the value associated with an array index
>constitutes changing the array, or whether that only means things like
>adding or deleting array indexes.
It means both.
>BTW, I'm evaluating Lua as a way to replace a bunch of ugly shell
>scripts in a Linux installer intended for installing on older
>machines. Lua's small footprint on disk and memory, as well as its
>expressiveness, are what attracted me to the language.
See tomsrtbt for some ideas on this: http://www.lua.org/uses.html#53
--lhf