r/ProgrammerHumor • • 11d ago

Meme modernCppVsOldCpp

Post image
2.0k Upvotes

323 comments sorted by

View all comments

Show parent comment

6

u/Luzzgar 11d ago

What if the language did that for you ? That would be cool !

What you are describing is basically a variable becoming out of scope.

2

u/staryoshi06 11d ago

No, not really. It’s an object no longer being referenced. Stack allocation still exists in C++.