DIP74: Reference Counted Class Objects
    Andrei Alexandrescu via Digitalmars-d 
    digitalmars-d at puremagic.com
       
    Wed Mar  4 08:01:40 PST 2015
    
    
  
On 3/4/15 5:08 AM, Volodymyr wrote:
> Implicit conversion to supertypes (class or interface) is allowed
> ONLY if the supertype is also a reference counted type. It
> follows that reference counted types cannot be converted to
> Object (unless Object itself defines the two methods).
>
> But how about calling methods of supertypes?
That also entails an implicit conversion. To clarify, I added this to 
http://wiki.dlang.org/DIP74#General:
"Method calls to supertypes are only allowed if the supertype that 
defines the method is also reference counted."
Andrei
    
    
More information about the Digitalmars-d
mailing list