[Issue 2524] final override inconsistent when implementing interfaces
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 20 09:10:00 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2524
------- Comment #7 from schveiguy at yahoo.com 2009-01-20 11:09 -------
In fact, private implies final (non-virtual), and does not put the function in
the vtable (meaning it cannot override a base function). From the spec: "All
non-static non-private non-template member functions are virtual." If someone
casts your class to an interface, do you want them to now be able to call your
private function?
--
More information about the Digitalmars-d-bugs
mailing list