On Monday, 8 August 2022 at 10:17:57 UTC, ag0aep6g wrote:

By the way, is there some resource that recommends `__gshared` over `shared`? It seems that many newbies reach for `__gshared` first for some reason.

Would be also good if the specs would tell more about those "guards":

Unlike the shared attribute, __gshared provides no safe-guards against data races or other multi-threaded synchronization issues.

The only thing I see is that the compiler bails about type incompatibilities but how does it help in case of synchronization/locking issues?

Reply via email to