Patriot1776 wrote:
This is all real interesting to read for me. I'm no coder and don't have the time (as yet) to learn how to, but I still like reading some of the hardcore on how game engines like ZDoom and others work.
Question: The ZDoom source files. Are they in C or C++?
randomlag wrote:Well sort of.
Many of the files (I've never bothered to count) are basically C (the original id files with mods). Adding a CPP isn't the same as saying they are C++, except for the stricter type checking, which is mostly a compiler feature. IOW, no classes etc.
You can compile C as C++ (assuming types work out ok), but the same can't be said for newer stuff Randy added that used C++ concepts.
Notice that the question was
source files, NOT project. It's a minor distinction and I really didn't care. But Graf seemed to think it was a big deal and that's why this thread turned into what it did. All he has to do was actually
read what I wrote vs interpreting it with some preconceived idea of what I was saying. I stated exactly what Ty wrote.
When you ask technical questions, the answers have to be very precise and exact. This is something you quickly find out when you contract for programming work, otherwise the customer will keep playing a different tune till he likes what he hears - and you've committed to a tune you thought you heard. So it's pretty ingrained in me to focus on
details - which drives some people nuts.
OK - that's enough even for me

even though there are C nuances possible that show how you can write C that won't compile in C++, hence it's not exactly a superset in the strict mathematical meaning of that word.