On Saturday, 26 July 2014 at 08:37:39 UTC, Jacob Carlborg wrote:
There is no equivalent to DllMain on OS X or Posix for that matter. The closest you get is the GCC/Clang attribute __attribute__((constructor)), but that requires using a C file, if not LDC or GDC supports that attribute.
Like this? http://wiki.dlang.org/LDC-specific_language_changes#LDC_global_crt_ctor_and_LDC_global_crt_dtor
