DIP 1024---Shared Atomics---Final Review
Manu
turkeyman at gmail.com
Fri Dec 13 12:46:22 UTC 2019
On Wed, Dec 11, 2019 at 9:25 PM RazvanN via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> 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.
They don't. If they did, those functions should be inline too.
More information about the Digitalmars-d
mailing list