▲ 893 ▼ The C++ learning process (aussie.zone) submitted 2 years ago by unionagainstdhmo@aussie.zone to c/programmerhumor@lemmy.ml 126 comments fedilink hide all child comments Incase it doesn't show up:
[–] 0x0@programming.dev 4 points 2 years ago (1 child) even a straight up C program C++ is not a superset of C. permalink fedilink source parent hideshow 1 child comment replies: [–] tunetardis@lemmy.ca 8 points 2 years ago There were breaking changes between C and C++ (and some divergent evolution since the initial split) as well as breaking changes between different releases of C++ itself. I am not saying these never happened, but the powers that be controlling the standard have worked hard to minimize these for better or worse. If I took one of my earliest ANSI C programs from the 80s and ran it through a C++23 compiler, I would probably need to remove a bunch of register statements and maybe check if an assumption of 16-bit int is going to land me in some trouble, but otherwise, I think it would build as long as it's not linking in any 3rd party libraries. permalink fedilink source parent
[–] tunetardis@lemmy.ca 8 points 2 years ago There were breaking changes between C and C++ (and some divergent evolution since the initial split) as well as breaking changes between different releases of C++ itself. I am not saying these never happened, but the powers that be controlling the standard have worked hard to minimize these for better or worse. If I took one of my earliest ANSI C programs from the 80s and ran it through a C++23 compiler, I would probably need to remove a bunch of register statements and maybe check if an assumption of 16-bit int is going to land me in some trouble, but otherwise, I think it would build as long as it's not linking in any 3rd party libraries. permalink fedilink source parent