Very limited shared promotion

Walter Bright newshound2 at digitalmars.com
Mon Jun 24 02:31:43 UTC 2019


On 6/22/2019 4:22 PM, Manu wrote:
> Show how to escape the pointer when it is scope...?

Use @system code. The programmer only has to ensure the escaped reference ceases 
before the function returns to fulfill the 'scope' semantics.

The scope semantics do not include memory barriers, though.


More information about the Digitalmars-d mailing list