[Gambas-user] Array in read-only property
bagonergi at gmail.com
Fri Aug 2 00:07:47 CEST 2019
Il giorno gio 1 ago 2019 alle ore 20:32 Benoît Minisini <g4mba5 at gmail.com>
> Le 01/08/2019 à 20:17, Gianluigi a écrit :
> > I hope that what I was asking is more clearer.
> Sorry, I don't understand what your problem is.
> The ReadOnly property makes an array read-only until the end of the
> program, that's all.
> It's useful for a class that has an internal array that must be made
> available to the outside user, but without letting it be modified by him.
> Benoît Minisini
unfortunately, as often happens to me, I made a mistake and sent the
answers directly to Benoit. :-(
Which, in conclusion, told me that a property (read-only) is a function and
an array (read-only) is an object. :-)
All right, I know I'm bumbling and I deserve it and Benoit is also too kind
and helpful and I thanked him and thank him again.
Except I haven't well understand yet what the difference is and when using,
in a class, a normal array that is returned in read-only from a read
property and a read-only array.
Regards and goodnight
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User