Assert and the optional Message

Ali Çehreli acehreli at yahoo.com
Fri Mar 9 14:08:28 PST 2012


On 03/09/2012 03:02 AM, Jonathan M Davis wrote:

 > contorting your program to try and print assert
 > messages to a file just because VisualD has problems with closing the 
Window on
 > you is a _bad_ idea IMHO.

Absolutely!

Inserting lines at the end of programs is not the correct solution to 
the problem at hand. Those lines have nothing to do with the program 
that is being written.

 > If it really has that problem, and you really need
 > to see the assertion without running the debugger on it, I'd advise just
 > running the program on the command line.

+1. That is a correct solution because it does not maim the very program 
that is being developed.

 >
 > - Jonathan M Davis

Ali



More information about the Digitalmars-d-learn mailing list