[Gambas-user] More on overriding native classes

Benoît Minisini gambas at ...1...
Wed Jul 4 01:58:11 CEST 2012


Le 25/06/2012 10:33, Bruce a écrit :
> OK, but not the answer I was hoping for.
>
> Presumably "Application" is needed early on in the piece.  What I'm
> trying to work out is, if I override Application then which order does
>
>          gb.Application._Init()
>                 ^
>                 |
>          gb.qt4.Application._Init()
>                 ^
>                 |
>          (my) Application.Init()
>
> get executed.

gb.Application._Init() first, then gb.qt4.Application._Init, then yours.

_Init is run when the class is loaded, so the order of execution follows 
the order of inheritance or overriding.

Regards,

-- 
Benoît Minisini






More information about the User mailing list