implicit conversions to/from shared

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 12 05:26:26 PDT 2016


On Monday, 11 July 2016 at 13:54:49 UTC, ag0aep6g wrote:
> If I got that right: Sure. But the compiler can't know if a 
> shared variable is volatile or not, so it has to assume that it 
> is. If the programmer knows that it's not volatile, they can 
> cast shared away and use a normal load.

If you cast shared away, an unshared postblit will be called 
instead of shared one.


More information about the Digitalmars-d mailing list