On Wed, 07 Sep 2016, PICCORO McKAY Lenz wrote:
> 2016-09-06 17:10 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> 
> > Then to correct that you need to create new objects for the new collection.
> >
> i created new object but the "deep copy" are need as Tobias mention!
> 
> On Tue, Sep 6, 2016 at 11:19 PM, Tobias Boege <tabo...@gmail.com> wrote:
> 
> > That is the expected behaviour. Copying coll1 should create a
> > new Collection
> > with exactly the same contents, i.e. a /shallow/ copy of the Collection, as
> > opposed to a /deep/ copy in which all contents of coll1 would also have
> > been copied recursively.
> >
> ok, confirm the i spected! but:
> 
> 
> > > Of course, if you know that your Collection only contains Collections,
> >
> gambas collections does not support elements of not-same type? all elements
> must be same type object?
> 

No, it can be different types, but it is easier to copy a Collection if all
elements are of the same type.

> and thanks for the code, that's what i exact already do!
> 
> seems u like maths! right?

I even study it.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to