[Gambas-user] Array in read-only property

Gianluigi bagonergi at gmail.com
Thu Aug 1 20:17:23 CEST 2019


Il giorno gio 1 ago 2019 alle ore 15:11 Gianluigi <bagonergi at gmail.com> ha
scritto:

>
>
> Il giorno gio 1 ago 2019 alle ore 13:39 Benoît Minisini <g4mba5 at gmail.com>
> ha scritto:
>
>> Le 01/08/2019 à 13:32, Gianluigi a écrit :
>> > Hi Benoit,
>> > if we want to have a *really* read-only property that returns an array
>> > we need the array to be read-only?
>> >
>> > Regards
>> > Gianluigi
>> >
>>
>> Yes.
>>
>> --
>> Benoît Minisini
>>
>
> If the array is built inside the _Read() function, read-only works well
> even if there is no error in the write attempt.
> Only if the array is built outside the function don't work well without
> putting the array on read-only
> Corrected?
> See attached
>
> Regards
> Gianluigi
>

I hope that what I was asking is more clearer.
See in CTypes the instructions for the attached program.

Regards
gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190801/b0c9d168/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestReadOnly-0.0.1.tar.gz
Type: application/gzip
Size: 11777 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190801/b0c9d168/attachment-0001.gz>


More information about the User mailing list