I wish all qualifiers were revisited with an eye for simplification

Stefan Koch uplink.coder at googlemail.com
Sun Aug 2 22:55:12 UTC 2020

On Sunday, 2 August 2020 at 20:50:14 UTC, Andrei Alexandrescu 
> (Background: qualifiers were introduced following my horror 
> when I started writing D1 code and saw that strings are 
> represented as char[]. So structs with string members would 
> look like:
  [lots of stuff]

const inout shared T is simply the same as const shared T.

shared means simply: this is not thread local,
therefore this thing might be used by other threads
therefore you read or write it in an expression directly.
You can however have a function take a shared argument and leave
the scheduling or locking or whatever synchronization you use,
to enact an operation in a safe way.

More information about the Digitalmars-d mailing list