On Saturday, 30 November 2013 at 18:58:30 UTC, Ali Çehreli wrote:
However, I doubt that .dup copies that '\0' character. Although the literal has the termination, we are in slice land beyond that literal so the termination must somehow be ensured.

Ali

Hm, yes, this also sounds like a valid concern. I thought that for literals \0 is part of actual string but after making a quick check it looks "hidden" behind actual length. So yep, perfectly wrong answer from me :)

Reply via email to