[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: OT: What is the purpose of virtual_hook anyways?
From: Jason Keirstead <jason () keirstead ! org>
Date: 2005-01-20 14:03:40
Message-ID: 200501201003.41007.jason () keirstead ! org
[Download RAW message or body]
On Thursday 20 January 2005 12:22 am, Thiago Macieira wrote:
> To solve that problem, declaring d to be a const pointer would probably
> help, in most cases. That should be a KDE4 policy, just as having
> d-pointers themselves or virtual hooks.
BTW, what is the purpose of all those virtual_hook methods? I have never seen
a definition of why these are used, or what purpose they serve - esp. since
most of them are empty.
Is it also to ensure BC, so that you have a generic entry point of data into
the class, in case you really need it?
Are there any cases in kdelibs where these methods are in use?
--
If you wait by the river long enough, eventually
you will see the bodies of all your enemies float by.
- Sun Tzu
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic