3 ms·
I don't write anything new and use inheritance anyway. Even in an embedded context you have classes and destructors, operator overloading and templates. You ca
by CyberDildonics 2y ago
I don't write anything new and use inheritance anyway.
Even in an embedded context you have classes and destructors, operator overloading and templates. You can still make data structures that exist in flat constrained memory.
- sixfiveotwo 2y agoSure, but 2kb code space? What sort of class hierarchy can you possibly use in so little space?
- CyberDildonics 2y agoWhat class hierarchy? Even demo scene people use C++ and windows binaries can start at 1KB. Classes, operator overloading and destructors are all still useful. There is no reason there has to be more overhead than C.
- sixfiveotwo 2y agoRight, they also tend to use special tools to crunch their binaries down to acceptable size, afaik. That said, that's a very good point. Maybe they'd even use that fmt library?
- CyberDildonics 2y agoWhat point are you even trying to make now? Every time you've been wrong about something and corrected you don't acknowledge it and just move on to something barely related. https://en.wikipedia.org/wiki/Gish_gallop https://en.wikipedia.org/wiki/Gish_gallop You said this: I'm pretty sure you wouldn't use C++ in that situation anyway, so I don't really see your point. People have pointed out to you why you both can and would use C++, especially in place of C.
- deleted 2y ago[deleted]
- sixfiveotwo 2y agoThank you for bringing this to my attention. I will try to remember that Let me coin a new term to help me in that task: the "swarm gallop", which would be that technique applied by a group of people, instead of just one person (somewhat like a DDOS). Thank you.
- consteval 2y agoC++ has namespaces, C does not. That one singular feature makes C++ worthy of being used over C.