Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support copying of lists #9

Open
musictopia2 opened this issue Nov 30, 2021 · 1 comment
Open

Does not support copying of lists #9

musictopia2 opened this issue Nov 30, 2021 · 1 comment

Comments

@musictopia2
Copy link

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.

@vmachacek
Copy link

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants