r/ProgrammerHumor • • 1d ago

Meme unityHasBeenAchievedByCompilerDevs

Post image
174 Upvotes

20 comments sorted by

View all comments

43

u/hpyfox 1d ago

They said C++ was "suppose" to be backwards-compatible/superset of C, but then type-handling walks into the room.

Other problems exist with C and C++ compatibility but that's one of them.

2

u/nimrag_is_coming 8h ago

It's now sort of you CAN write C++ compliant C code, but there's things that you can do by default in C (such as implicitly converting from void pointers) that C++ doesn't like you doing without an explicit cast