Thread overview
[Issue 20663] writeln should be @nogc
Mar 10, 2020
Adam D. Ruppe
Mar 10, 2020
Manu
Mar 10, 2020
Adam D. Ruppe
Dec 17, 2022
Iain Buclaw
March 10, 2020
https://issues.dlang.org/show_bug.cgi?id=20663

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
Whatever happened to that dip 1008 thing?

Or perhaps we could just change the invalid utf 8 sequence exception to the replacement char. I'd personally argue that is more useful for writing anyway (I often cast stuff to byte for it)

--
March 10, 2020
https://issues.dlang.org/show_bug.cgi?id=20663

--- Comment #2 from Manu <turkeyman@gmail.com> ---
Dunno what's going on with DIP1008, but I actually agree that using the replacement char is actually the more interesting and useful thing to do.

I might be interested in throwing a UTF exception from a function like `validateString`, but I don't want writeln to throw! I want it to write text to the output stream... it has one job!

--
March 10, 2020
https://issues.dlang.org/show_bug.cgi?id=20663

--- Comment #3 from Adam D. Ruppe <destructionator@gmail.com> ---
hmmm took a look at the code and the other thing that throws is on fwrite errors. I forgot about those... could possibly throw a static instance or something but that complicates the easy idea of just using replacement char.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=20663

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=20663

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9790

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--