Hacker News new | ask | show | jobs
by kevincox 1893 days ago
I don't think that does because IIUC you are copying the bits of y to x. So I guess semantically y has escaped but you aren't doing a new heap allocation, you are reusing the memory of x.