[Gambas-user] Arrays of mixed numeric type always float[] not variant[]
Benoît Minisini
g4mba5 at gmail.com
Mon Mar 7 22:17:59 CET 2022
Le 07/03/2022 à 20:28, Brian G a écrit :
> When I create an array
>
> dim a = [1, 2, 3, 4, 4.5]
> Gambas always creates a float[] not variant[], which makes it impossible
> to add sets like [1,3,4] to the array later. Is this the correct
> behavior for mixed arrays of numbers?
>
> "Failure is the key to success;
> each mistake teaches us something" .. Morihei Ueshiba
> Brian G
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Yes. If you don't like it, do not use the "[...]" operator for creating
your array.
--
Benoît Minisini
More information about the User
mailing list