https://issues.dlang.org/show_bug.cgi?id=17747
--- Comment #4 from ZombineDev <[email protected]> --- > __attribute__ ((constructor)) is in C. It can be called in start before main, > without DRuntime. Technically this is a compiler extension, not a feature part of the ISO C standard. My point was that C standard does not require such feature and therefore we shouldn't rely on its existence. On the other hand, C++ does due to the need to be able to call class constructors for static/global variables. --
