Please review the " temporary storage class specifiers" and "C++ is the next C++" attachment. It could be the avenue of making some of these changes in the language. It is an example of changing one of C++ defaults. It provides the means to have the change now for those who need and want it and a path for those who can't to migrate over to the new default.
Yeah I agree with that, in a way to make C++ stricter, safer and simpler. I would add also: "return of reference to local variables":
int & foo()
{
int i;
return i;
}
Apparently this issue is not even detected by Visual Studio C++ in 2022.
But again, C++ needs to be simplified, not made more complex, or
else it's a "time bomb" for C++ quite simply.
Regards,
|
|
|||||||
Le message ci-dessus,
ainsi que les documents l'accompagnant, sont destinés
uniquement aux personnes identifiées et peuvent contenir
des informations privilégiées, confidentielles ou ne
pouvant être divulguées. Si vous avez reçu ce message par
erreur, veuillez le détruire.This communication (and/or the attachments) is intended for named recipients only and may contain privileged or confidential information which is not to be disclosed. If you received this communication by mistake please destroy all copies. |
||||||||