[Gambas-user] An other OO problem.
Benoit Minisini
gambas at ...1...
Tue Jan 20 14:59:52 CET 2009
On lundi 19 janvier 2009, Jussi Lahtinen wrote:
> If I have understand concept correctly, I think this;
> http://gambasdoc.org/help/comp/gb/object%5B%5D/copy
> is little misleading.
> "Returns a deep copy of the array."
> Objects copied with this method doesn't seem to be deep copied
> (shallow copy instead).
>
>
> Jussi
>
I wanted to mean that the returned array is a new object, and that the array
contents is copied. But if the array contents are object references, objects
are not copied (there is no way to tell Gambas how to copy objects), only the
references are.
Is "shallow copy" really the right term then?
--
Benoit Minisini
More information about the User
mailing list