[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-user
Subject: Re: [Gambas-user] An other OO problem.
From: "Jussi Lahtinen" <jussi.lahtinen () gmail ! com>
Date: 2009-01-20 15:13:11
Message-ID: 384d3900901200713m2bf1fd4ej3d2f76b397500283 () mail ! gmail ! com
[Download RAW message or body]
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 ).
...with very high risk of misinterpret...
I'm very satisfied to have some kind of beginner warning to documentation.
Jussi
On Tue, Jan 20, 2009 at 4:53 PM, nando <nando_f@nothingsimple.com> wrote:
> And so, a new copy of references to objects still point the objects
>
>
> ---------- Original Message -----------
> From: Benoit Minisini <gambas@users.sourceforge.net>
> To: mailing list for gambas users <gambas-user@lists.sourceforge.net>
> 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/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
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------- End of Original Message -------
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic