[Gambas-user] JIT compiler debugging
Jussi Lahtinen
jussi.lahtinen at gmail.com
Wed Oct 24 14:36:53 CEST 2018
OK, it's clear now.
Jussi
On Sat, Oct 20, 2018 at 2:56 PM Benoît Minisini <g4mba5 at gmail.com> wrote:
> Le 18/10/2018 à 04:20, Jussi Lahtinen a écrit :
> > If I understand correctly, overriding like this should not be allowed (
> > http://gambaswiki.org/wiki/doc/object-model#t19 ):
> > Property y As Object --> Property y As TestClass1
> >
> > But no error is raised. See the attachment (baseclass & childclass).
> >
> >
> > Jussi
> >
>
> The documentation is not accurate. The datatype of the child must not be
> the same as the parent. It must be compatible.
>
> - If the datatypes are not objects, then both datatypes must be the same.
>
> - If the datatypes are objects, then either the parent must be 'Object',
> or the child datatype must inherit the parent datatype.
>
> Except for public variables where inheritance is now forbidden.
>
> This is not a JIT-related problem by the way.
>
> Regards,
>
> --
> Benoît Minisini
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181024/0eadccb5/attachment.html>
More information about the User
mailing list