What should happen when the assert message expression throws?

Ali Çehreli acehreli at yahoo.com
Sun Nov 20 18:18:11 UTC 2022


On 11/18/22 14:05, Walter Bright wrote:

 >> So just write:
 >>
 >>          assert(myAssumption, format!"%s doesn't work!"(blah));
 >>
 >> Problem solved.
 >
 > You should post that to the bug report!

The problem with the format string was just an example. What if 'blah' 
above is a function that throws Exception?

Ali



More information about the Digitalmars-d mailing list