When an exception is thrown and the application doesn't handle it, the default handler outputs the error message to stdout. This is wrong. It should go to stderr. That's exactly what stderr's there for. Walter once claimed that he doesn't really like stderr, apparently because versions of Windows prior to 2000 don't provide a means of redirecting it. I have debunked this excuse at least three times over: 1. By pointing out that the spec states that "the program gracefully exits through the default error handler with an appropriate message". Redirecting error output when the user didn't ask for it, be it to a file, a filter or a program such as Doxygen, is most ungraceful. 2. By stating that whether to redirect errors along with normal output should be up to the user, not the programmer, and certainly not the creator of the language that the program is written in. 3. By writing Rederr and releasing it on digitalmars.D.announce: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.announce/1518 The fix was written ages ago: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/4368
Sorry, choice of stdout vs stderr for the last ditch catch isnt: Critical crashes, loss of data, severe memory leak P1 so bad that an update needs to happen immediately; i.e. it makes D unusable I've lowered it back to normal and P2. I do agree that stderr is more appropriate.
Sorry, I was thinking of it as silent generation of bad code, which Walter once suggested should count as critical. Should've finished reading that discussion I guess....
The fix is now here: http://www.digitalmars.com/d/archives/digitalmars/D/bugs/3170.html May I propose an alternative meaning for P1 - namely "The fix has been written and should be folded in right now"?
That was the thread with the fix to remove Object.print and the implicitly imported printf, with a follow-on fix for this. The fix that just fixes this bug is, of course, at http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4368
(In reply to comment #3) > May I propose an alternative meaning for P1 - namely "The fix has been written > and should be folded in right now"? No reply => going for it. Time's too short to waste any more.
Fixed DMD 1.010
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/246f737c0f246f0b89ee27bfb611965e64f611ac start on fixing issue 5570 64 bit ABI
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f1039b341f2798f176dcf3c34019682d413ea863 start on fixing issue 5570 64 bit ABI
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a8ffc8ab60aa3e1ae965e5764f0900e14a0881c1 Fix issue 7546 64-bit floating-point issue with negative zero: -0.0 == 0.0 is false Just duplicate the code for float == float.