* Posts by picoreg

1 post • joined 18 Jul 2019

Rust in peace: Memory bugs in C and C++ code cause security issues so Microsoft is considering alternatives once again


Granted this is a bandaid... but i seems to me they already know that pointers are unsafe and have know that for years... So why don't they just build in the "unsafe" into c/c++ standard and require everybody to use "references" instead of "pointers" unless you ask for a compiler exemption by placing "unsafe" keyword in the code to mark a pointer block... then the C/C++ compiler from microsoft and gcc will just refuse to build the main exe and mark the "safe" flag in the exe...so that everytime you run the code...it pops up a warning that says, "this code was created using old C++ pointer techniques and maybe unsafe to run on your PC blah blah.."...


Biting the hand that feeds IT © 1998–2020