[Gambas-user] some questions around collections copy and collections inside collections

PICCORO McKAY Lenz mckaygerhard at ...626...
Wed Sep 7 17:39:44 CEST 2016


2016-09-06 17:10 GMT-04:00 Jussi Lahtinen <jussi.lahtinen at ...626...>:

> 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 <taboege at ...626...> 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?

and thanks for the code, that's what i exact already do!

seems u like maths! right?



More information about the User mailing list