DIP 1024--Shared Atomics--Community Review Round 1

Meta jared771 at gmail.com
Wed Oct 2 15:50:15 UTC 2019

On Wednesday, 2 October 2019 at 09:00:54 UTC, Kagamin wrote:
> Also cast() doesn't strip qualifiers
> shared int[] a;
> pragma(msg,typeof(cast()a).stringof);
> prints "shared(int)[]"

That's because `shared int[] a` is really `shared(int[] a)`, so 
cast() only strips the top level shared off.

More information about the Digitalmars-d mailing list