On Friday, 12 September 2025 at 15:47:08 UTC, Richard (Rikki) Andrew Cattermole wrote:
>On 13/09/2025 3:42 AM, Sönke Ludwig wrote:
>If there is currently no way, could those symbols be changed to weak linkage to enable the Windows approach on other platforms?
Sure, there's a standardized core.attribute.weak
UDA nowadays, so these functions could be annotated in upstream druntime, working with all compilers then (DMD emits all functions as weak on non-Windows, so the @weak
there is just a dummy).
https://github.com/dlang/dmd/blob/master/druntime/src/core/exception.d#L546
The mentioned functions don't go through the customizable assertHandler
.