News for hackers. Stuff that matters.
Re:Catching use-after-move C++ bugs with Clang's consumed an... by pcwalton on Wednesday July 10, 2019 @06:12PM (#20407139)
C and C++ cannot add borrow checking soundly while remaining any semblance of compatibility with the ecosystem. Consider what you would do with global variables, just to name one of many, many issues.
Re:Catching use-after-move C++ bugs with Clang's consumed an... by de_watcher on Thursday July 11, 2019 @05:55AM (#20410346)
Why not? It's all done when you don't pass around raw references and pointers. The only hole that's left is use-after-move.
Re:Catching use-after-move C++ bugs with Clang's consumed an... by pcwalton on Thursday July 11, 2019 @06:04AM (#20410380)
Virtually all C++ in existence uses raw references and pointers. You can't even call a method without using one (the "this" pointer).