On 2011-06-20 10:43, Steven Schveighoffer wrote:
> On Mon, 20 Jun 2011 09:23:22 -0400, Andrei Alexandrescu
> 
> <[email protected]> wrote:
> > Technically you're right. Yet I think it's pretty widespread that a sole
> > char* means a zero-terminated string.
> 
> I think it's pretty widespread that you shouldn't be using zero-terminated
> strings ;)
> 
> But I suppose it makes sense that to can convert from a char[] to a char
> *, and if it does, it doesn't hurt to do the safest thing.  I think it
> should be discouraged, however, in favor of doing toUTFz which is more
> descriptive as a function name.

So, you're arguing that we should introduce toUTFz for converting character 
arrays to zero-terminated strings, and then have std.conv.to use it when 
converting from character arrays to character pointers?

- Jonathan M Davis

Reply via email to