Issue 14168 - Class support for RefCounted
Summary: Class support for RefCounted
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks: 15509
  Show dependency treegraph
 
Reported: 2015-02-11 03:55 UTC by Jakob Ovrum
Modified: 2024-12-01 16:23 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jakob Ovrum 2015-02-11 03:55:16 UTC
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).
Comment 1 Jakob Ovrum 2015-02-11 04:09:47 UTC
(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
Comment 2 dlangBugzillaToGithub 2024-12-01 16:23:46 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10115

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB