Why do "const inout" and "const inout shared" exist?
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jul 2 06:50:00 PDT 2017
On 07/02/2017 09:49 AM, Andrei Alexandrescu wrote:
> On 07/02/2017 09:48 AM, Andrei Alexandrescu wrote:
>> *p = 42; // should be a shared write, it's not
>
> I meant:
>
> p = new int; // should be a shared write, it's not
Dognabbit. No, I meant the previous one! The pointer itself is private
to gun. -- Andrei
More information about the Digitalmars-d
mailing list