[haiku-commits] Re: haiku: hrev47567 - src/kits/interface

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 24 Jul 2014 22:11:11 +0200

On 24/07/2014 21:42, John Scipione wrote:
> On Thu, Jul 24, 2014 at 3:19 PM, Stefano Ceccherini
> <stefano.ceccherini@xxxxxxxxx> wrote:
>> The order of INHERITED methods doesn't matter.
>>
>> If class A declares
>>
>> virtual void foo();
>> virtual void foo2();
>>
>> In class B : public A
>>
>> there is no difference if you declare
>>
>> virtual void foo();
>> virtual void foo2();
>>
>> or
>>
>> virtual void foo2();
>> virtual void foo();
> 
> Right, that makes sense, I understand now. I don't think I would have
> assumed that to be true so thank you for explaining it. There aren't
> any non-inherited public virtual methods in BTextView so I guess the
> order ultimately didn't matter which is a good thing.
> 

Except reordering the base class methods might not be a good idea at all
on the other hand... and BTextView is likely the baseclass to several ones.

François.

Other related posts: