Loops
Loops
Posted May 31, 2013 2:46 UTC (Fri) by bluss (guest, #47454)In reply to: Loops by nix
Parent article: Ktap — yet another kernel tracer
So if it's like Lua's tables, then you can delete key-value pairs during iteration fine, but you shouldn't add key-value pairs during iteration; if you do, I think iteration is unpredictable.
I think it's a bit misleading that no notice is given in the license header of the files with copies of lua code (even if lua authors are credited elsewhere). It becomes misleading when the file lists 'Author:' without declaring all of them.
https://github.com/ktap/ktap/blob/master/interpreter/table.c