[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Proposing the removal of virtual_hooks (or how you can add a
From:       Thiago Macieira <thiago () kde ! org>
Date:       2006-03-05 16:50:45
Message-ID: 200603051750.53154.thiago () kde ! org
[Download RAW message or body]


Frans Englich wrote:
>On Saturday 04 March 2006 11:18, Thiago Macieira wrote:
>> I'd like to propose a change of policy in the KDE libraries: remove
>> all virtual_hook functions from QObject-derived classes.
>>
>> The reason for that is that we *already* have a virtual_hook function
>> in those classes and it's called qt_metacall. It's automatically
>> generated by moc, so we're safe that it'll always exist.
>
>Another way to preserve BC is to use the visitor/double dispatch
> pattern. It can be argued to be a bit heavy code-wise, but achieves the
> goal and can also be fast, depending on various factors. Major
> pros/cons:

Would you mind elaborate on what that is?
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic