docs
docs copied to clipboard
R/S docs don't tell which datatype should literal arrays be

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!.
There are no support (yet) for pointer of pointer, so pointer! [integer!] is the only choice for now. c-string! is a pointer type, it's equivalent to pointer! [byte!] with the extra constraint that the buffer is NUL-terminated.
Where is the best place to doc that?
I can add a note in the R/S doc.