What should happen when the assert message expression throws?
Iain Buclaw
ibuclaw at gdcproject.org
Tue Jan 10 10:38:16 UTC 2023
On Friday, 18 November 2022 at 12:36:14 UTC, RazvanN wrote:
> I have stumbled upon:
> https://issues.dlang.org/show_bug.cgi?id=17226
>
> I want to fix it, however, the solution is not obvious.
>
> Take this code:
>
Surely this could be simplified to
```
throw new Exception(assert(0));
```
Or...
```
assert(false, assert(false));
```
More information about the Digitalmars-d
mailing list