If you could make any changes to D, what would they look like?

IGotD- nise at nise.com
Mon Oct 25 18:22:59 UTC 2021


On Monday, 25 October 2021 at 18:12:36 UTC, Paul Backus wrote:
>
> As far as I know this is not what `shared` does, and not what 
> `shared` is intended to do. By itself, `shared` is just a 
> marker for data that requires synchronization to access (what 
> [the spec][1] calls "shared memory locations"). Whether that 
> synchronization is accomplished using atomic operations or 
> locking is entirely up to the programmer.
>
> [1]: https://dlang.org/spec/intro.html

Last time I tried a shared struct I had to cast away the atomic 
operations on about every line. Is this removed in newer compiler 
versions?


More information about the Digitalmars-d mailing list