Bug 14168 – Class support for RefCounted

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-11T03:55:16Z
Last change time
2024-12-01T16:23:46Z
Assigned to
No Owner
Creator
Jakob Ovrum
Blocks
15509
Moved to GitHub: phobos#10115 →

Comments

Comment #0 by jakobovrum — 2015-02-11T03:55:16Z
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 by jakobovrum — 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
Comment #2 by robert.schadek — 2024-12-01T16:23:46Z
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