[Gambas-user] Array in read-only property
Gianluigi
bagonergi at gmail.com
Thu Aug 1 15:11:42 CEST 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190801/6f603dbd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Types-0.0.3.tar.gz
Type: application/gzip
Size: 11720 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190801/6f603dbd/attachment-0001.gz>
More information about the User
mailing list