When to call setAssertHandler?
Benjamin Thaut
code at benjamin-thaut.de
Tue Mar 26 11:37:03 PDT 2013
Am 25.03.2013 23:49, schrieb Sean Kelly:
> 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.
>
Do you have some idea how to solve this in a generic way? Is this even
possible without adding another feature to the language?
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d-learn
mailing list