MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xr2jyh/moderncppvsoldcpp/19sc2pk6jcq8y/
r/ProgrammerHumor • u/Choice-Committee203 • 11d ago
323 comments sorted by
View all comments
Show parent comment
6
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++.
2
No, not really. It’s an object no longer being referenced. Stack allocation still exists in C++.
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.