[Development] Adoption of virtual_hook()

lars.knoll at nokia.com lars.knoll at nokia.com
Wed Apr 11 14:12:23 CEST 2012


I was never a really big fan of adding lots of virtual_hook()'s to
classes. vtable entries do come at a cost and in many cases it's not
really required. I am certainly against blindly adding them to all our
classes.

Cheers,
Lars

On 4/11/12 8:19 AM, "ext jan-arve.saether at nokia.com"
<jan-arve.saether at nokia.com> wrote:

>The "Little Manual of API Design" [1] recommends adding a virtual_hook()
>that can be used later on if we need to extend the class without BIC.
>Lots of classes does not have this hook.
>
>Isn't this something we should fix before Qt5 is out?
>
>Jan-Arve
>
>[1]: Little Manual of API Design,
>http://chaos.troll.no/~shausman/api-design/api-design.pdf
>
>_______________________________________________
>Development mailing list
>Development at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/development




More information about the Development mailing list