Memory safe in D
Alex
akornilov.82 at mail.ru
Thu Mar 14 07:53:37 UTC 2024
On Wednesday, 13 March 2024 at 21:57:17 UTC, Jonathan M Davis
wrote:
> On Wednesday, March 13, 2024 1:43:23 AM MDT Alex via
> Digitalmars-d wrote:
> What shared is supposed to do is give an error if you attempt
> do anything with a shared variable that isn't guaranteed to be
> thread-safe - which basically means that it should give an
> error when you actually try to do much of anything with a
> shared variable. However, it's not fully implemented by default
> right now (it will currently give an error in some cases but
> not all). The -preview=nosharedaccess switch can be used to
> make accessing shared variables an error in general (like it's
> supposed to be), but it hasn't been enabled by default yet.
Thank you for detailed explanation!
More information about the Digitalmars-d
mailing list