On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
