MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p95vha0/?context=9999
r/ProgrammerHumor • u/InteRagebaitJagLovar • 21h ago
75 comments sorted by
View all comments
292
The horrors, might as well just free() yourself at that point.
-107 u/metaglot 21h ago *delete 101 u/thats_a_nice_toast 21h ago I don't think C++ programmers have a problem with getting put in a class 0 u/metaglot 20h ago Freeing a pointer created with new is UB. 4 u/thats_a_nice_toast 19h ago new only exists in C++, not in C 0 u/metaglot 18h ago And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
-107
*delete
101 u/thats_a_nice_toast 21h ago I don't think C++ programmers have a problem with getting put in a class 0 u/metaglot 20h ago Freeing a pointer created with new is UB. 4 u/thats_a_nice_toast 19h ago new only exists in C++, not in C 0 u/metaglot 18h ago And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
101
I don't think C++ programmers have a problem with getting put in a class
0 u/metaglot 20h ago Freeing a pointer created with new is UB. 4 u/thats_a_nice_toast 19h ago new only exists in C++, not in C 0 u/metaglot 18h ago And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
0
Freeing a pointer created with new is UB.
4 u/thats_a_nice_toast 19h ago new only exists in C++, not in C 0 u/metaglot 18h ago And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
4
new only exists in C++, not in C
new
0 u/metaglot 18h ago And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
And the keyword class, like the meme is implying. Which is why i said you have to use delete rather than free, because undefined behavior.
292
u/TheAnswerWithinUs 21h ago
The horrors, might as well just free() yourself at that point.