Cloneable icon indicating copy to clipboard operation
Cloneable copied to clipboard

Does not support copying of lists

Open musictopia2 opened this issue 4 years ago • 1 comments

I found that if an object contains a list (like List), then nothing from it gets copied. For the sample, I found if the parent has a count of 3 (because i added 3 integers), then the cloned has 0. Which means that nothing got copied. If the parent list was List, then what should happen is as follows: it should loop through the list and add one by one so its a true deep copy. however, still supporting the safeclone.

musictopia2 avatar Nov 30 '21 13:11 musictopia2

I think biggest challenge with copying collections is with its creation, because generator cannot support some derived types of known collections which can have non standard constructors. It can support usual suspects (List, Array, etc) but that will get you only half the way..

vmachacek avatar Jun 17 '22 04:06 vmachacek