Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fair enough!

Although obviously having to copy the data out (especially if it has a destructor) is a bit nasty.



Yes, for big things it's a drag. Even for small things it's verbose to use and awful boilerplate to write. And I totally agree with the spirit of your argument that pointers and pointer aliasing makes concurrency harder in C/C++. Was just pointing out the standard well-known idiom for avoiding the problem. Indeed C++'s 'private' language feature allows the compiler to help you with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: