lua-users home
lua-l archive

Re: Is it safe to modify values while traversing a table with lua_next()?

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


Am 2012年07月26日 14:02, schrieb Matthew Wild:
You can modify the values, including setting them to nil. The only
other thing you *can't* do is add new keys to the table. The
documentation for next() in the manual describes this a bit further.
Aye, thank you very much! :-)
Best regards,
Carsten
--
 Cafu - the open-source Game and Graphics Engine
for multiplayer, cross-platform, real-time 3D Action
 Learn more at http://www.cafu.de

AltStyle によって変換されたページ (->オリジナル) /