Forcing my module to be initialized first

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon Oct 16 03:33:55 UTC 2023


On 16/10/2023 4:31 PM, dan wrote:
> I suppose if i could figure out a way to make all other modules depend 
> on my module this would happen, but the module which uses the variable i 
> want to set is in some already-compiled dynamic library that i would 
> prefer not to touch.

If its in a shared library, then that shared library gets setup prior to 
your binary.

There is nothing that you can do. You gotta override rather than initialize.


More information about the Digitalmars-d-learn mailing list