Skip to content

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

@jackschmidt

Description

@jackschmidt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions