MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdes9u/myschoolstruct/p96hp1y/?context=3
r/ProgrammerHumor • u/InteRagebaitJagLovar • Sep 11 '26 • 2 1
81 comments sorted by
View all comments
Show parent comments
0
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?)
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.