kdelibs/kmdi

Lubos Lunak l.lunak at suse.cz
Thu Jan 27 09:24:18 GMT 2005


On Wednesday 26 of January 2005 19:30, Waldo Bastian wrote:
> On Wednesday 26 January 2005 19:20, Andras Mantia wrote:
> > I don't know if it's dangerous in this case or not, but unfortunately
> > the current way broke the kdelibs's compilation. Maybe in this case all
> > variants of the method should be reimplemented, even if you want to
> > reimplement only one?
>
> Yes, they should. It's one of those quirks of C++. Once you re-implement
> one function all it's overloaded brothers and sisters disappear out of
> scope.

 And that's why it's probably better not to overload virtual methods, but make 
the overloads non-virtual and call one differently named common virtual 
method.

>
> And when that is done this change to kmdi should be reverted.
>
> Cheers,
> Waldo

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the kde-core-devel mailing list