Assert and the optional Message

Chris Pons cmpons at gmail.com
Thu Mar 8 23:42:25 PST 2012


I am new to D and have been playing around with Assert. I figured 
that using a message with assert would be very helpful, but 
unfortunately when the message is printed to the console, the 
console closes and my program ends.

Is there any way to get a more permanent message?

I've tried adding system("PAUSE") and it doesn't have any effect.

Is there any way I could have the assert function print the 
message to a file?

I'm using VS2010 and Visual D if that is of any importance.



More information about the Digitalmars-d-learn mailing list