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

carrays and warning on char / char* #1132

Closed
jleni opened this issue Oct 23, 2017 · 3 comments
Closed

carrays and warning on char / char* #1132

jleni opened this issue Oct 23, 2017 · 3 comments

Comments

@jleni
Copy link

jleni commented Oct 23, 2017

Swig documentation says that array_class() should not be used with char or char *.

http://www.swig.org/Doc3.0/Library.html#Library_carrays

Note: %array_functions() and %array_class() should not be used with types of char or char *.
The reason is not explicit in the documentation. Could someone explain the reason? Should the documentation be updated?

Is this to avoid collisions with strings? Is it ok to use array_class with unsigned char * ?

@wsfulton
Copy link
Member

wsfulton commented Nov 2, 2017 via email

@ojwb
Copy link
Member

ojwb commented Mar 14, 2018

@wsfulton Is there something you think should be addressed in SWIG here, or can this be closed?

@wsfulton
Copy link
Member

8e733c0 enhanced the docs. Closing.

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