Click here to Skip to main content
15,179,476 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:19
mvahoney the codewitch2-Mar-21 5:19 
GeneralRe: New code in C? Where and why, versus C++? Pin
Dave B 683-Mar-21 0:41
MemberDave B 683-Mar-21 0:41 
GeneralRe: New code in C? Where and why, versus C++? Pin
TheGreatAndPowerfulOz3-Mar-21 12:54
MemberTheGreatAndPowerfulOz3-Mar-21 12:54 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 6:55
mveRick York2-Mar-21 6:55 
GeneralRe: New code in C? Where and why, versus C++? Pin
steveb2-Mar-21 16:16
Membersteveb2-Mar-21 16:16 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 17:10
mveRick York2-Mar-21 17:10 
GeneralRe: New code in C? Where and why, versus C++? Pin
Matt McGuire3-Mar-21 6:09
professionalMatt McGuire3-Mar-21 6:09 
AnswerRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 5:01
mveGreg Utas2-Mar-21 5:01 
Well, there was/is this Embedded C++ standard. No RTTI, no exceptions, no templates. But compilers have gotten much better since then, so those things shouldn't affect a footprint the way they used to unless you get careless.

No vtables? That certainly does complicate inheritance, because a non-virtual destructor in a base class can lead to derived classes not releasing resources. I wouldn't impose that restriction, because a vtable should only need pointers to functions that are actually virtual. Even Embedded C++ didn't strip out virtual functions.

I agree with your sentiment but think you're unduly handcuffing yourself with your restrictions.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:17
mvahoney the codewitch2-Mar-21 5:17 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 5:23
mveGreg Utas2-Mar-21 5:23 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:29
mvahoney the codewitch2-Mar-21 5:29 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 5:32
mveGreg Utas2-Mar-21 5:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:34
mvahoney the codewitch2-Mar-21 5:34 
GeneralRe: New code in C? Where and why, versus C++? Pin
pkfox2-Mar-21 12:10
professionalpkfox2-Mar-21 12:10 
AnswerRe: New code in C? Where and why, versus C++? Pin
Rage2-Mar-21 5:12
professionalRage2-Mar-21 5:12 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:15
mvahoney the codewitch2-Mar-21 5:15 
GeneralRe: New code in C? Where and why, versus C++? Pin
giulicard2-Mar-21 22:48
Membergiulicard2-Mar-21 22:48 
AnswerRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 5:18
professionalPIEBALDconsult2-Mar-21 5:18 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 5:32
mvahoney the codewitch2-Mar-21 5:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 5:53
professionalPIEBALDconsult2-Mar-21 5:53 
AnswerRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 6:32
professionalMike Hankey2-Mar-21 6:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 7:58
mvahoney the codewitch2-Mar-21 7:58 
GeneralRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 9:51
professionalMike Hankey2-Mar-21 9:51 
GeneralRe: New code in C? Where and why, versus C++? Pin
Martin ISDN2-Mar-21 23:37
MemberMartin ISDN2-Mar-21 23:37 
AnswerRe: New code in C? Where and why, versus C++? Pin
  Forogar  2-Mar-21 6:46
professional  Forogar  2-Mar-21 6:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.