r/ProgrammerHumor • • 16h ago

Meme unityHasBeenAchievedByCompilerDevs

Post image
151 Upvotes

16 comments sorted by

View all comments

37

u/hpyfox 16h 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.

1

u/nimrag_is_coming 11m 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