[Gambas-user] Crash with latest version

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Feb 10 18:56:50 CET 2021


So, how is it, what is the correct behaviour?

Jussi

On Tue, Feb 9, 2021 at 4:41 AM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

> If preserving the dimensions is not possible, then I think error should be
> raised instead of conversion.
> Because otherwise it could be hard to debug where the error originates.
> And there probably is existing code that relies on the preservation of the
> dimensions.
>
> Jussi
>
> On Tue, Feb 9, 2021 at 4:23 AM Jussi Lahtinen <jussi.lahtinen at gmail.com>
> wrote:
>
>>
>> At MTest.1963, you pass a 10x10 boolean array to a function that gets an
>>> Integer array as argument, and returns its number of dimensions.
>>>
>>> The interpreter converts the 10x10 boolean array into a 100 elements
>>> Integer array, and returns 1.
>>>
>>> But you apparently expect that function to return 2.
>>>
>>> So I'm surprised...
>>>
>>
>> That is old code and it has never triggered an error. So, Gambas used to
>> preserve the dimensions on conversion.
>> Is that not possible anymore?
>>
>>
>> Jussi
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210210/110ce0b4/attachment.htm>


More information about the User mailing list