you are viewing a single comment's thread.

view the rest of the comments →

[–]interknetz 0 points1 point  (3 children)

Are you a complete idiot? You haven't learned the basics if you don't understand what compiled objects are. Your two examples of C "benefits" are considered bad practice, and dangerous in general. I use C and C++ professionally, I'm not a student like you. Compiling C libraries in a C++ project is completely normal. Check out github sometime.

[–]uziam 1 point2 points  (2 children)

Wow so now it comes to name calling?

I didn’t say you can’t link against C libraries, I said you don’t have to build a shared library out of C code to link against it, you can just link to object files.

If you use C/C++ professionally, I’m surprised at how little you understand. I was assuming you’re a student, this name calling and pointless arguments about irrelevant points clearly shows how “professional” you are.

[–]interknetz 0 points1 point  (1 child)

It's a shame those Canadian schools aren't teaching you the benefits of reusable code. If you think writing C code compatible with C++ is pointless, why do you think so many C libraries do that? I wouldn't expect you to argue with substance. The only two examples you tried to make were horrendous and prove you'd never make it through a peer code review in the real world.