Very limited shared promotion

Walter Bright newshound2 at digitalmars.com
Sat Jun 22 07:57:22 UTC 2019


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.


More information about the Digitalmars-d mailing list