[Issue 17180] to!string('\0') makes "\0" which breaks concatination
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Feb 14 03:21:10 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17180
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ag0aep6g at gmail.com
--- Comment #1 from ag0aep6g at gmail.com ---
1) I see two quotes when I run your code. The last one is not gone. I'm running
dmd 2.073.0 on Ubuntu linux. What version of dmd and what operating system are
you on?
2) If there is a problem here, I don't think it's with to!string. For any char
c, it returns a string [c]. Making '\0' an exception would be surprising. '\0'
is a valid char, and "\0" is a valid string (with length 1).
--
More information about the Digitalmars-d-bugs
mailing list