What is the design reasons for Not considering base class overloaded

Matthew Ong ongbp at yahoo.com
Thu May 26 23:35:41 PDT 2011


On 5/27/2011 2:03 PM, Matthew Ong wrote:
> Would not it be a better keyword such as:
>
> class A{
> // assuming there is a new keyword of noinherit
> noinherit void foo(int x){} // all other method can be inherited in A
> except for this class
> }
Ignore the last message on new noinherit, just remember we already have 
final.
Could new keyword help function hijacking and prevented aliasing all 
over the place??

-- 
Matthew Ong
email: ongbp at yahoo.com



More information about the Digitalmars-d-learn mailing list