[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
Wed Dec 20 11:36:30 UTC 2023


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #2 from Nick Treleaven <nick at geany.org> ---
hasIndirections!SysTime is true, so in theory `time` can't have `shared` cast
away safely. See issue #24269. However, it looks like the only indirection is
to immutable data:

    long  _stdTime;
    Rebindable!(immutable TimeZone) _timezoneStorage;

So actually the cast might be safe.

--


More information about the Digitalmars-d-bugs mailing list