|
|
Subscribe / Log in / New account

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

I looked into the ktap code, it's interesting to see how much of the Lua VM and seeminly its table implementation is there.

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

http://www.lua.org/source/5.2/ltable.c.html


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds