[Gambas-user] Bug

Jussi Lahtinen jussi.lahtinen at gmail.com
Thu Aug 23 21:31:29 CEST 2018


OK, here is what caused the confusion. There is discrepancy in the
behaviour depending whether JIT is used or not.
When GB_NO_JIT = 0 everything runs fine (as set right now), but when JIT is
in use it will report null object. I think JIT is working correctly.

Jussi

On Thu, Aug 23, 2018 at 6:09 PM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

> Phuuh... yes, my mistake. I didn't remember the unknown method.
>
>
> Jussi
>
> On Thu, Aug 23, 2018 at 12:17 PM Benoît Minisini <g4mba5 at gmail.com> wrote:
>
>> Le 23/08/2018 à 03:22, Jussi Lahtinen a écrit :
>> > The sub is called with TestClass2 even when TestClass1 is asked. Also
>> > this way there is no error message at all!
>> >
>> > Private Sub Crash(o1 As TestClass1)
>> >
>> >   Dim ii As Integer = o1.x
>> >   Dim jj As Integer = o1.y()
>> >
>> > End
>> >
>> > Jussi
>> >
>>
>> Of course: as you define an _unknown method in TestClass2, this method
>> is returned when accessing an unknown symbol (hence the error when you
>> don't call it).
>>
>> I will try to see if I can make the error more explicit by detecting
>> that special case.
>>
>> --
>> 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/20180823/6e0cd3ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GambasTestercmd-0.10.12.tar.gz
Type: application/gzip
Size: 26999 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180823/6e0cd3ca/attachment-0001.gz>


More information about the User mailing list