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

Reply via email to