On Wednesday, 12 June 2013 at 03:26:43 UTC, Daniel Murphy wrote:
"Jonathan M Davis" <[email protected]> wrote in message
news:[email protected]...
On Wednesday, June 05, 2013 22:50:14 Michel Fortin wrote:
P.S.: while implementing this change, please make sure private and
package functions can be virtual.

I'd agree with package on that, but I don't think that private should be virtualizable, because that conflicts with actually hiding non-accessible functions, which is what a number of us are pushing for. Otherwise, private implementation details of classes and modules risk causing code breakage (e.g. the fact that overload resolution occurs before checking the access level is
atrocious).

- Jonathan M Davis

Private functions can be overridden only within the same module. This does not conflict with hiding private members from _outside_ the module. You will always be able to _see_ private members from inside the same module,
virtual or not.

Which also make them finalizable automagically.

Reply via email to