[Issue 21033] enhancement: allow assign to field when the shared owing object has been locked already without cast

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 28 10:20:14 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=21033

anonymous4 <dfj1esp02 at sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from anonymous4 <dfj1esp02 at sneakemail.com> ---
This can be done only for value types, shared and immutable data. For thread
local mutable reference types lock doesn't provide thread safety, because you
escape thread local data into shared context. What you ask can't be for all
reference types. Whether it can be done for SysTime is a SysTime's problem.

--


More information about the Digitalmars-d-bugs mailing list