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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 7 12:29:18 PST 2009


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.


-- 



More information about the Digitalmars-d-bugs mailing list