lua-users home
lua-l archive

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

Dear Lua list,

using Lua 5.1, when I loop over the key-value pairs in a table using lua_next(), it is safe to modify the values?
Especially if the new value is nil, in order to remove the key-value pair from the table? explicitly warns about modifying the keys, but says nothing about modifying the values.

Best regards,

   Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
          Learn more at