When to call setAssertHandler?

Sean Kelly sean at invisibleduck.org
Mon Mar 25 15:49:45 PDT 2013


On Mar 22, 2013, at 2:58 AM, Benjamin Thaut <code at benjamin-thaut.de> wrote:

> So I want to install my own assertHandler. The problem is, that even if I call "setAssetHandler" in a shared module constructor, and that module does not import any other modules, it is still not initialized first. Is there a way to set the assert before any module constructors run without hacking druntime?

I'm afraid not.  I suppose this is a case I should have handled, but it didn't occur to me at the time.


More information about the Digitalmars-d-learn mailing list