[Issue 3258] Calling private or package override methods calls the base implementation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 21 17:04:30 PST 2012


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



--- Comment #10 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-21 17:04:28 PST ---
(In reply to comment #9)
> Non-virtual by default + a virtual keyword + no limits on virtuality based on
> access specifiers => dream come true (for me).

I forgot one thing that completes the circle, and that is friend declarations.
That way private inheritance actually becomes useful beyond the module the
class is declared in. I never liked the idea of having private leak into the
entire module to begin with, I want fine-grained access via friend declarations
and access specifiers which don't mess with virtuality. Otherwise I'm left
using PIMPL idioms or mixin templates (yuck!).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list