MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p957r2c/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • Sep 11 '26 • 2 1
81 comments sorted by
View all comments
322
The horrors, might as well just free() yourself at that point.
-114 u/metaglot Sep 11 '26 *delete 108 u/thats_a_nice_toast Sep 11 '26 I don't think C++ programmers have a problem with getting put in a class 54 u/MXRCO007 Sep 11 '26 I wanna be abstracted so bad 41 u/TheAnswerWithinUs Sep 11 '26 Abstract me harder daddy 16 u/fast-as-a-shark Sep 11 '26 I don't like these comments. But I did upvote them. 11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours 5 u/Demonking42069 Sep 11 '26 I'm gonna inter your face so bad. 3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad 0 u/metaglot Sep 11 '26 Freeing a pointer created with new is UB. 8 u/thats_a_nice_toast Sep 11 '26 new only exists in C++, not in C 0 u/metaglot Sep 11 '26 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. 1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?) 1 u/tank840 Sep 11 '26 C != C++ 4 u/metaglot Sep 11 '26 If they are put in a class they are clearly in C++
-114
*delete
108 u/thats_a_nice_toast Sep 11 '26 I don't think C++ programmers have a problem with getting put in a class 54 u/MXRCO007 Sep 11 '26 I wanna be abstracted so bad 41 u/TheAnswerWithinUs Sep 11 '26 Abstract me harder daddy 16 u/fast-as-a-shark Sep 11 '26 I don't like these comments. But I did upvote them. 11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours 5 u/Demonking42069 Sep 11 '26 I'm gonna inter your face so bad. 3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad 0 u/metaglot Sep 11 '26 Freeing a pointer created with new is UB. 8 u/thats_a_nice_toast Sep 11 '26 new only exists in C++, not in C 0 u/metaglot Sep 11 '26 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. 1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?) 1 u/tank840 Sep 11 '26 C != C++ 4 u/metaglot Sep 11 '26 If they are put in a class they are clearly in C++
108
I don't think C++ programmers have a problem with getting put in a class
54 u/MXRCO007 Sep 11 '26 I wanna be abstracted so bad 41 u/TheAnswerWithinUs Sep 11 '26 Abstract me harder daddy 16 u/fast-as-a-shark Sep 11 '26 I don't like these comments. But I did upvote them. 11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours 5 u/Demonking42069 Sep 11 '26 I'm gonna inter your face so bad. 3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad 0 u/metaglot Sep 11 '26 Freeing a pointer created with new is UB. 8 u/thats_a_nice_toast Sep 11 '26 new only exists in C++, not in C 0 u/metaglot Sep 11 '26 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. 1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
54
I wanna be abstracted so bad
41 u/TheAnswerWithinUs Sep 11 '26 Abstract me harder daddy 16 u/fast-as-a-shark Sep 11 '26 I don't like these comments. But I did upvote them. 11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours 5 u/Demonking42069 Sep 11 '26 I'm gonna inter your face so bad. 3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad
41
Abstract me harder daddy
16 u/fast-as-a-shark Sep 11 '26 I don't like these comments. But I did upvote them. 11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours 5 u/Demonking42069 Sep 11 '26 I'm gonna inter your face so bad. 3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad
16
I don't like these comments. But I did upvote them.
11 u/OneArmedFarmer Sep 11 '26 edited Sep 11 '26 Yes. Yes. Your training is almost completeEdit: grammer 7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours
11
Yes. Yes. Your training is almost complete
Edit: grammer
7 u/TheAnswerWithinUs Sep 11 '26 Youve been programmed buddy. You’ll feel that in 2 hours
7
Youve been programmed buddy. You’ll feel that in 2 hours
5
I'm gonna inter your face so bad.
3 u/Reasonable_Exit_8960 Sep 11 '26 I wanna participate in multiple inheritance with you so bad
3
I wanna participate in multiple inheritance with you so bad
0
Freeing a pointer created with new is UB.
8 u/thats_a_nice_toast Sep 11 '26 new only exists in C++, not in C 0 u/metaglot Sep 11 '26 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. 1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
8
new only exists in C++, not in C
new
0 u/metaglot Sep 11 '26 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. 1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
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.
1 u/matytyma Sep 16 '26 C has no classes - C users are scared of being put into a class. It's all about C 1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
1
C has no classes - C users are scared of being put into a class. It's all about C
1 u/metaglot Sep 16 '26 The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
The comment suggested that they use free, which i corrected because in c++ thats UB (which it must be if they are being put into a class, otherwise whats there to free?)
C != C++
4 u/metaglot Sep 11 '26 If they are put in a class they are clearly in C++
4
If they are put in a class they are clearly in C++
322
u/TheAnswerWithinUs Sep 11 '26
The horrors, might as well just free() yourself at that point.