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]
- Subject: Re: Is it safe to modify values while traversing a table with lua_next()?
- From: Carsten Fuchs <carsten.fuchs@...>
- Date: 2012年7月26日 23:19:06 +0200
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