[Gambas-user] More on overriding native classes
Benoît Minisini
gambas at ...1...
Mon Jun 25 00:47:53 CEST 2012
Le 25/06/2012 00:41, Bruce a écrit :
>>
>> If you export a class with a name that already exists, it automatically
>> implies inheritance with overriding.
>>
>> So you have a "multiple inheritance" error by using the "Inherits" keyword.
>>
>
> Wow! That simple.
> Now I can do all those nefarious things I've always wanted :-)
>
> Oh, but wait, one question.
>
> Class initialisation must occur in some specific order (like
> constructors and inherited classes), what is it and is there any way to
> control it? e.g. by the order of the components and libraries in
> the .startup file?
>
> Bruce
>
The only rule if that a class is initialized the first time it is needed.
--
Benoît Minisini
More information about the User
mailing list