draft proposal for ref counting in D

Walter Bright newshound2 at digitalmars.com
Wed Oct 9 19:17:55 PDT 2013


Michel Fortin wrote:

Le 28-juin-2013 à 4:55, Rainer Schuetze <r.sagitario at gmx.de> a écrit :

 > What happens if the class also implements interfaces? A reference of the 
interface type must do reference counting as well. So the interface must also 
define AddRef and Release. This is currently true for COM-interfaces derived 
from IUnknown, but not for other interfaces.


I would assume if an object of a reference-counted class cannot be cast to its 
base non-reference-counted class that it'd be the same for casting to 
non-reference-counted interfaces.



More information about the Digitalmars-d mailing list