Proposing the removal of virtual_hooks (or how you can add a virtual method without using "virtual")

Lubos Lunak l.lunak at suse.cz
Sat Mar 4 21:41:47 GMT 2006


On Saturday 04 March 2006 12:44, Olivier Goffart wrote:
> Le Samedi 4 Mars 2006 12:18, Thiago Macieira a écrit :
> > I'd like to propose a change of policy in the KDE libraries: remove all
> > virtual_hook functions from QObject-derived classes.

 Fine with me.

>
> I agree.
> If we want to add a virtual function, the workaround using signals/slots is
> more intuitive that the one with virtual_hook

 Is it :) ? Well, I'd say that they're both pretty ugly (and I'm the author of 
both), but it'd be naive to expect ugly hacks not to be ugly, wouldn't it?

-- 
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