flightaware/Tcl-bounties

Clarification of 'A reasonable C API for enumerating an array'

Opened this issue · 2 comments

Is this just asking to get a nicer C-level access to the already available 'array startsearch', 'array nextelement' etc., which is currently only accessible via Tcl_eval?

Those are mentioned as 'will probably be removed in 9.0', in the wiki, so probably needs some sorting out what direction things go with array iteration anyway.

In C it is easy to get the value of an element of an array but it is difficult to enumerate the elements of the array without using Tcl_Eval... a C equivalent to "foreach var [array names myArray]"

Implementing a C API that is functionally equivalent to the "array *search" commands is the general idea here.

See also #18