implicit conversions to/from shared

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 12 09:14:58 PDT 2016


On Tuesday, 12 July 2016 at 15:46:52 UTC, Kagamin wrote:
> shared only differentiates between shared and unshared data. 
> Teaching people to write legit concurrent code is a different 
> task. Increment of a shared variable doesn't have a compelling 
> use case so whatever happens to it is not important, just 
> storing shared data is more common.

The deprecation of ++ shows that (currently) shared's purpose is 
not only to differentiate between shared and unshared data.

Either we go forward with the deprecation of ++. Then reads and 
writes should follow the same pattern. Or we should revert the 
deprecation of ++ and say that people must simply be careful with 
shared.

The current inconsistency is no good.


More information about the Digitalmars-d mailing list