[Gambas-user] Array.ReadOnly - Bug?

Benoît Minisini g4mba5 at gmail.com
Thu Sep 26 14:35:08 CEST 2019


Le 25/09/2019 à 18:11, Benoît Minisini a écrit :
> Le 25/09/2019 à 16:59, Charlie Ogier a écrit :
>> Hi,
>>
>> We've been testing 3.14 and found that you can't 'Add' to a ReadOnly 
>> array but you can 'Remove' and change a value. Is that correct?
>>
>> Dim sString as String[] = ["1","2","3","4","5","6"]
>> sString.ReadOnly = True
>> sString.Remove(0)
>> sString[0]=0
>> Print.sString.Join(",")
>>
>> Result = 0,3,4,5,6
>>
>> Charlie
>>
> 
> No, it's a bug.
> 

Fixed in commit 
https://gitlab.com/gambas/gambas/commit/f08ce22cdc4e2f0482dab29bd21442639503b5e5.

Regards,

-- 
Benoît Minisini


More information about the User mailing list