DIP 1024---Shared Atomics---Final Review

RazvanN razvan.nitu1305 at gmail.com
Wed Dec 11 11:23:12 UTC 2019


On Wednesday, 11 December 2019 at 09:47:12 UTC, Manu wrote:
> On Wed, Dec 11, 2019 at 7:30 PM Walter Bright via Digitalmars-d 
> <digitalmars-d at puremagic.com> wrote:
>> [...]
>
> core.stdc, core.stdcpp, core.atomic should be all inline (or 
> externs
> to the C lib) and absolutely not require linking any d-libs.
> Sadly, we don't have an inline qualifier that works right; the 
> only
> hack we have is to make should-be-inline functions a template 
> with no
> template args, which is a lame hack that frustrates some forms 
> of meta
> :/

This is a bit risky. Consider that the function in core.atomic 
might use other non-template functions from druntime which will 
cause a link time failure.


More information about the Digitalmars-d mailing list