[Issue 2563] Derived class is implicitly castable to Base class when inherited privately

Extrawurst spam at extrawurst.org
Wed Jan 7 12:33:59 PST 2009


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=2563
> 
> 
> 
> 
> 
> ------- Comment #3 from 2korden at gmail.com  2009-01-07 14:29 -------
> (In reply to comment #1)
>> Why is public/private/protected inheritance even supported?  I think this is
>> more a strange artifact in the compiler/grammar than anything else.  When you
>> don't have MI, anything but public inheritance is useless.
>>
> 
> No, it's useful to hide implementation details.
> 
> 

wooops right its documented like this aswell. sorry, its a bug!


More information about the Digitalmars-d-bugs mailing list