aliasing base methods

Bill Baxter dnewsgroup at billbaxter.com
Sun Feb 25 11:06:54 PST 2007


Ary Manzana wrote:
> Frank Benoit (keinfarbton) escribió:
>> My point is, i want this strange rules to be removed.
>> And I want the override keyword not to be a useless thing.
>>
>> I propose:
>> 1.) make an overload not hide base implementations
>> 2.) make the override keyword required, to make it useful.
>> 3.) remove the interface reimplementation rule.
>>
>> What do you think?
> 
> I also agree with the three points.
> 
> Number 2 is especially useful if a function in a base class is removed. 
> Inmediately you can tell which classes need to remove the overriden 
> functions because they are no longer in use, and can lead to bugs.

Already works that way if you just use override religiously.

--bb



More information about the Digitalmars-d mailing list