[Issue 17180] to!string('\0') makes "\0" which breaks concatination

2017-02-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17180

j...@red.email.ne.jp changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from j...@red.email.ne.jp ---
(In reply to ag0aep6g from comment #1)
> 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?

Ooops! I should have tested it _without_ my development tool...
On windows command prompt, it works correctly.

I am sorry. closing this.

--


[Issue 17180] to!string('\0') makes "\0" which breaks concatination

2017-02-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17180

ag0ae...@gmail.com changed:

   What|Removed |Added

 CC||ag0ae...@gmail.com

--- Comment #1 from ag0ae...@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).

--