[Issue 13983] RefCounted needs to be @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 25 20:13:20 UTC 2021


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

Ate Eskola <Ajieskola at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ajieskola at gmail.com
            Summary|RefCounted needs to be      |RefCounted needs to be
                   |pure, @safe, nothrow        |@safe

--- Comment #8 from Ate Eskola <Ajieskola at gmail.com> ---
Regarding nothrow and pure, this is fixed as Phobos unittests confirm. Changing
the title. And by the way, the struct is also @nogc and -betterC.

@safe remains a problem though. It cannot be added in vanilla D, but with
-dip1000 flag there may be hope. Atila recently made a PR that attempts to do
just that: https://github.com/dlang/phobos/pull/8101

--


More information about the Digitalmars-d-bugs mailing list