lua-users home
lua-l archive

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


>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