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

深拷贝与浅拷贝 #36

Open
JLUssh opened this issue Jul 25, 2024 · 0 comments
Open

深拷贝与浅拷贝 #36

JLUssh opened this issue Jul 25, 2024 · 0 comments

Comments

@JLUssh
Copy link

JLUssh commented Jul 25, 2024

深拷贝中的cloneOtherType方法是否有误?
new Ctr(tar);
如果这个tar是new Boolean(false)等,new Ctr(tar) 这样得到的值为true...
(好像只有这一个特例....

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

1 participant