Override assert handler
Walter Bright
newshound2 at digitalmars.com
Sun Aug 18 01:55:22 UTC 2024
On 8/17/2024 2:31 AM, Manu wrote:
> I mean, there's also the `assertHandler()` stuff, but I don't really see the
> point; I'd rather just replace the assert handler symbol directly.
> Using `assertHandler` is awkward because you need a static constructor to
> register it at runtime, and then anything you do in your assert handler almost
> inevitably leads to bootup issues with cyclic module dependencies because
> everything leads back to assert.
Yes, that is a botched design that makes things much more complicated than
necessary.
More information about the Digitalmars-d
mailing list