--- Comment #9 from klickverbot <> 2011-06-16 08:06:26 PDT 
(In reply to comment #8)
> This occurs even when I mark DerivedClass' function as final.

I think it is quite clear that the example you gave shouldn't compile, as the
spec has: �Functions marked as final may not be overridden in a derived class,
unless they are also private.�

The question now is whether the same behavior should also apply to the example
from above. I'm strongly in favor of that, because otherwise, there can be
situation where the following two pieces of code don't refer to the same
�bar()�, which is completely contrary to how classes usually work in D:

auto foo = new Derived();;

Base foo = new Derived();;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to