In message <[EMAIL PROTECTED]> Roman Hunt <[EMAIL PROTECTED]> wrote:
> why dont we default to null terminating strings of type native? > if "native" is what we get when LANG=C it only seems natural to do so. > else we are forced to use wrapper functions a that grow and manipulate > string data any time we need to pass it to standard C functions that > wont accept a string_length parameter, this list unfortunately contains > several syscalls. Well that is what perl 5 does certainly. I thought it had been decided not to do that in perl 6 though due to issues about what it meant to nul terminate in various different character sets. We can't assume that US-ASCII will be native everywhere though as some platforms may use some form of unicode as the native character set (and accept unicode arguments to systems calls). It does need some thought though, to determine how best to handle this issue. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/