inheritable d and getting rid of virtual_hook

David Faure faure at kde.org
Wed Jun 6 10:02:52 BST 2007


On Wednesday 06 June 2007, Oswald Buddenhagen wrote:
> On Wed, Jun 06, 2007 at 10:40:22AM +0200, Thiago Macieira wrote:
> > But that only works for virtuals that aren't supposed to be overridden by
> > the user of those classes. The users don't have access to the _p.h file,
> > so they can't override in the d-pointer either.
> > 
> obviously.
> but virtual_hooks are for internal use only anyway, no? hmm, well,
> actually, they don't need to be ... damn.

Well, virtual_hook as public API is... as awful as it can get.
We never used it for that, only for internal virtual methods (like in KArchive/KZip/KTar/...)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list