Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class support for RefCounted #10115

Open
dlangBugzillaToGithub opened this issue Feb 11, 2015 · 1 comment
Open

Class support for RefCounted #10115

dlangBugzillaToGithub opened this issue Feb 11, 2015 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

jakobovrum (@JakobOvrum) reported this on 2015-02-11T03:55:16Z

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

CC List

Description

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).
@dlangBugzillaToGithub
Copy link
Author

jakobovrum commented on 2015-02-11T04:09:47Z

(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

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants