`shared`...

Manu turkeyman at gmail.com
Mon Oct 1 03:33:16 UTC 2018


On Sun, Sep 30, 2018 at 8:20 PM Nicholas Wilson via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> 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

Haha, sneaky bugger :P
I reckon the patch is gonna be a lot bigger than that though!


More information about the Digitalmars-d mailing list