[Issue 14168] Class support for RefCounted

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 10 20:09:47 PST 2015


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

--- Comment #1 from Jakob Ovrum <jakobovrum at gmail.com> ---
(In reply to Jakob Ovrum from comment #0)
> Instantiating RefCounted with a class or interface type should
> reference-count the actual instance and not just a class reference. To this
> end, RefCounted currently rejects instantiating with class types for
> forward-compatibility purposes (at least I'm pretty sure that's why it does
> it).

I filed a PR to reject interface types as well until class support is properly
implemented:

    https://github.com/D-Programming-Language/phobos/pull/2977

--


More information about the Digitalmars-d-bugs mailing list