https://issues.dlang.org/show_bug.cgi?id=17035

David Nadlinger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from David Nadlinger <[email protected]> ---
LDC has been supporting this for a while with a compiler-specific pragma:
https://wiki.dlang.org/LDC-specific_language_changes#LDC_global_crt_ctor_and_LDC_global_crt_dtor

Tying this to extern(C)/extern(C++) might look nicer syntactically, although
I'm not sure about conflating what usually concerns ABI (in the wider sense)
with runtime behaviour. Either way, since it is quite a sharp tool (no
guarantees about runtime/GC initialisation), we should make sure to handle
deprecation properly – "extern(C):" and "shared static this" (order!) might
already be used in the same file and would change meaning.

--

Reply via email to