`shared`...

Nicholas Wilson iamthewilsonator at hotmail.com
Mon Oct 1 03:18:24 UTC 2018


On Monday, 1 October 2018 at 02:29:40 UTC, Manu wrote:
> struct Bob
> {
>   void setThing() shared;
> }
>
> As I understand, `shared` attribution intends to guarantee that 
> I dun
> synchronisation internally.
> This method is declared shared, so if I have shared instances, 
> I can
> call it... because it must handle thread-safety internally.

seems reasonable

https://github.com/dlang/dmd/pull/8782


More information about the Digitalmars-d mailing list