[r6rs-discuss] perhaps i should be formal, but....

From: Jeff Read <bitwize>
Date: Thu Mar 15 01:03:29 2007

On 3/14/07, MichaelL_at_frogware.com <MichaelL_at_frogware.com> wrote:

>
> By "single/multi-byte string" I mean the equivalent of C's "char *" type
> (as opposed to "wchar_t *").

`char *' is not a string type. It was simply pressed into service as
one because the C language is too low-level to provide proper handling
for string objects. Scheme has no such trouble; therefore it has
string objects and no direct analogue to `char *'. For example,
null-termination is not an issue in Scheme.

A sensible FFI would provide a way to convert Scheme string types to C
strings for procedures that require them. If you really need
single-byte strings, it shouldn't be hard to write a library for such
in terms of bytevectors.

--Jeff
Received on Thu Mar 15 2007 - 01:03:23 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC