Ok, I get what you mean.
There are two copies of the array (two objects), but their content points
to same objects. So result only looks kind of shallow copy.
Brain twisting... warning to documentation would be nice.
Jussi
On Tue, Jan 20, 2009 at 5:43 PM, Rob wrote:
> On Tuesday 20 January 200
On Tuesday 20 January 2009 10:13, Jussi Lahtinen wrote:
> Maybe something like "Returns a copy of the array of object references."
> ? I'm really NOT expert of this topic! I understand that result as
> shallow copy, as the way that wikipedia describe it (
> http://en.wikipedia.org/wiki/Object_copy
mailing list for gambas users
> Sent: Tue, 20 Jan 2009 14:59:52 +0100
> Subject: Re: [Gambas-user] An other OO problem.
>
>> On lundi 19 janvier 2009, Jussi Lahtinen wrote:
>> > If I have understand concept correctly, I think this;
>> > http://gambasdoc.org/help/co
And so, a new copy of references to objects still point the objects
-- Original Message ---
From: Benoit Minisini
To: mailing list for gambas users
Sent: Tue, 20 Jan 2009 14:59:52 +0100
Subject: Re: [Gambas-user] An other OO problem.
> On lundi 19 janvier 2009, Jussi Lahti
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 cop
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
On Thu, Jan 15, 2009 at 2:50 AM, Beno
On jeudi 15 janvier 2009, Jussi Lahtinen wrote:
> Hi!
> Again I'm having OO headache (I'm OO newbie).
> I have very simple task, and I believe the solution would be as
> simple... I just don't get it.
> I need to make independent copy of object, from collection A to collection
> B.
>
> I tried foll
Hi!
Again I'm having OO headache (I'm OO newbie).
I have very simple task, and I believe the solution would be as
simple... I just don't get it.
I need to make independent copy of object, from collection A to collection B.
I tried following (among other things):
Dim A as NEW Collection
Dim B as N