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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 3 20:52:34 PDT 2011


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


Mike Shulman <viritrilbia+d at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |viritrilbia+d at gmail.com


--- Comment #5 from Mike Shulman <viritrilbia+d at gmail.com> 2011-06-03 20:48:04 PDT ---
Since private methods are visible to the entire module in which they are
defined, and thus could reasonably be overridden by derived classes defined in
the same module, I don't see why making them all non-virtual is any more valid
of an optimization, in principle, than doing the same for package methods.

-- 
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