Thread overview
[Issue 20144] standard pragma for weak linkage
Aug 19, 2019
Manu
Jun 09, 2022
mhh
Jun 09, 2022
kinke
Jun 09, 2022
kinke
Jun 09, 2022
mhh
August 19, 2019
https://issues.dlang.org/show_bug.cgi?id=20144

Manu <turkeyman@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry, link-failure

--
June 09, 2022
https://issues.dlang.org/show_bug.cgi?id=20144

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com

--- Comment #1 from mhh <maxhaton@gmail.com> ---
A UDA seems like a better option

--
June 09, 2022
https://issues.dlang.org/show_bug.cgi?id=20144

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kinke@gmx.net
         Resolution|---                         |FIXED

--- Comment #2 from kinke <kinke@gmx.net> ---
(In reply to mhh from comment #1)
> A UDA seems like a better option

Yep, and even better, it already exists - core.attribute.weak, incl. support by DMD, GDC and LDC. => closing

--
June 09, 2022
https://issues.dlang.org/show_bug.cgi?id=20144

--- Comment #3 from kinke <kinke@gmx.net> ---
Well, I guess it doesn't work with DMD on Windows. But LDC supports it with the linker directive emulation. Anyway, that should be filed as a separate issue then.

--
June 09, 2022
https://issues.dlang.org/show_bug.cgi?id=20144

--- Comment #4 from mhh <maxhaton@gmail.com> ---
I wasn't aware dmd had it but ok

--