Skip to content

R/S docs don't tell which datatype should literal arrays be #271

Description

@hiiamboris

When I declare for example:
array: ["ab" "cd" "ef"]
what type should I put into the function spec?

According to the docs it should be pointer! [c-string!] but it's invalid to have pointer to pointer, so it errors out. Empirically found that it's actually int-ptr!.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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