shared - i need it to be useful

Nicholas Wilson iamthewilsonator at hotmail.com
Tue Oct 16 22:21:15 UTC 2018


On Tuesday, 16 October 2018 at 21:19:26 UTC, Steven Schveighoffer 
wrote:
> There is in fact, no difference between:
>
> int *p;
> shared int *p2 = p;
> int *p3 = cast(int*)p2;
>
> and this:
>
> int *p;
> shared int *p2 = p;
> int *p3 = p;

If I understand Manu correctly the first should compile, and the 
second should error, just like if you replaces shared with const 
in the above.



More information about the Digitalmars-d mailing list