Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
schlenk opened this issue Nov 23, 2016 · 2 comments
Open

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

schlenk opened this issue Nov 23, 2016 · 2 comments

Comments

@schlenk
Copy link

schlenk commented Nov 23, 2016

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.

@lehenbauer
Copy link
Collaborator

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]"

@resuna
Copy link
Member

resuna commented May 11, 2017

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

See also #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants