https://issues.dlang.org/show_bug.cgi?id=17226
Bolpat <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #11 from Bolpat <[email protected]> --- As Timon pointed out, requiring the evaluation of the assert msg to be nothrow is a limitation, I don’t think it is a major limitation. `assumeWontThrow` [1] is well-suited for this purpose. I don’t think that ```d import std.exception : assumeWontThrow; assert(condition, assumeWontThrow(potentially throwing expr)); ``` is too much to ask for. It documents clearly that the message-generating expression could throw. That way, an Exception thrown by the message-generating expression does not hide a bug. [1] https://dlang.org/phobos/std_exception.html#assumeWontThrow --
