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

Strings as list don't work, maybe clarify the documentation #102

Open
jackschmidt opened this issue Jun 25, 2021 · 0 comments
Open

Strings as list don't work, maybe clarify the documentation #102

jackschmidt opened this issue Jun 25, 2021 · 0 comments

Comments

@jackschmidt
Copy link

jackschmidt commented Jun 25, 2021

In gap-system/gap#4585 @mfarrokhidg asked about using Strings as list of characters as arguments. This does not work. The documentation tries to address this ("arguments must be GAP Strings"), but perhaps the documentation should be more clear that the functions require IsStringRep not just IsString.

I gave the following workaround. A similar example might be useful in the manual.

gap> x:=['t', 'e', 's', 't'];
"test"
gap> IO_mkdir(x,0);
fail
gap> ConvertToStringRep(x);
gap> IO_mkdir(x,0);
true
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

1 participant