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.

-Steve

Reply via email to