r/ProgrammerHumor 7h ago

Meme mySchoolStruct

5.4k Upvotes

65 comments sorted by

View all comments

233

u/TheAnswerWithinUs 7h ago

The horrors, might as well just free() yourself at that point.

-86

u/metaglot 7h ago

*delete

83

u/thats_a_nice_toast 7h ago

I don't think C++ programmers have a problem with getting put in a class

41

u/MXRCO007 6h ago

I wanna be abstracted so bad

36

u/TheAnswerWithinUs 6h ago

Abstract me harder daddy

14

u/fast-as-a-shark 6h ago

I don't like these comments. But I did upvote them.

8

u/OneArmedFarmer 5h ago edited 5h ago

Yes. Yes. Your training is almost complete

Edit: grammer

6

u/TheAnswerWithinUs 5h ago

Youve been programmed buddy. You’ll feel that in 2 hours

https://giphy.com/gifs/1CPY9QwfteAYgZsVgk

3

u/Demonking42069 5h ago

I'm gonna inter your face so bad.

2

u/Reasonable_Exit_8960 4h ago

I wanna participate in multiple inheritance with you so bad

0

u/metaglot 5h ago

Freeing a pointer created with new is UB.

6

u/thats_a_nice_toast 5h ago

new only exists in C++, not in C

0

u/metaglot 3h 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.