Very limited shared promotion

Manu turkeyman at gmail.com
Sat Jun 22 08:03:30 UTC 2019


On Sat, Jun 22, 2019 at 6:00 PM Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On 6/21/2019 5:33 PM, Manu wrote:
> > Because it's safe to do from the calling scope's perspective,
>
> No, it is not.
>
>
> > Compiler is not required to check the users work in @trusted code. It assumes
> > the user conformed with language requirements.
>
> The language does not require you to put the fence in, hence it cannot assume
> you did.
>
> I don't know how else to explain it to you. Your example does not work.

Your code snippet is incomplete; show the implementation of passToThread()...


More information about the Digitalmars-d mailing list