On Sunday, 2 June 2013 at 20:50:31 UTC, Jonathan M Davis wrote:

http://stackoverflow.com/questions/12288465

Lets have string of chars, and it contains UTF-8 string.
Does front(str[]) automatically convert first unicode character to UTF-32 and returns it?
I made a test case and answer is: "Yes, it does!"
May be this make sense. But such implicit conversion confuses everyone whom I asked. Therefore, string is not ordinary array (in Phobos context), but special array with special processing rules.

I'm moving from C++ and often ask myself: "why D has so much hidden confusing things?"

Reply via email to