[Issue 2524] final override inconsistent when implementing interfaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 21 05:53:44 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2524





------- Comment #14 from smjg at iname.com  2009-01-21 07:53 -------
(In reply to comment #13)
>> But the compiler is capable of checking to see whether the inheritance is 
>> public or private.  It just doesn't at the moment.  No runtime protection 
>> checking needed in this instance.
> 
> Casting to Object is valid, since the class did not inherit from Object 
> privately.  Once you get to object, you need runtime information to cast to a 
> subclass or interface.

Sorry, I misread what your code was doing.  It's the same as the C++ example
indeed.


-- 



More information about the Digitalmars-d-bugs mailing list