Click here to Skip to main content
15,298,837 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 4:19
mvahoney the codewitch2-Mar-21 4:19 
GeneralRe: New code in C? Where and why, versus C++? Pin
Dave B 682-Mar-21 23:41
MemberDave B 682-Mar-21 23:41 
GeneralRe: New code in C? Where and why, versus C++? Pin
TheGreatAndPowerfulOz3-Mar-21 11:54
MemberTheGreatAndPowerfulOz3-Mar-21 11:54 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 5:55
mveRick York2-Mar-21 5:55 
GeneralRe: New code in C? Where and why, versus C++? Pin
steveb2-Mar-21 15:16
Membersteveb2-Mar-21 15:16 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 16:10
mveRick York2-Mar-21 16:10 
GeneralRe: New code in C? Where and why, versus C++? Pin
Matt McGuire3-Mar-21 5:09
professionalMatt McGuire3-Mar-21 5:09 
AnswerRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:01
mveGreg Utas2-Mar-21 4: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 4:17
mvahoney the codewitch2-Mar-21 4:17 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:23
mveGreg Utas2-Mar-21 4:23 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:29
mvahoney the codewitch2-Mar-21 4:29 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:32
mveGreg Utas2-Mar-21 4:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:34
mvahoney the codewitch2-Mar-21 4:34 
GeneralRe: New code in C? Where and why, versus C++? Pin
pkfox2-Mar-21 11:10
professionalpkfox2-Mar-21 11:10 
AnswerRe: New code in C? Where and why, versus C++? Pin
Rage2-Mar-21 4:12
professionalRage2-Mar-21 4:12 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:15
mvahoney the codewitch2-Mar-21 4:15 
GeneralRe: New code in C? Where and why, versus C++? Pin
giulicard2-Mar-21 21:48
Membergiulicard2-Mar-21 21:48 
AnswerRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 4:18
professionalPIEBALDconsult2-Mar-21 4:18 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:32
mvahoney the codewitch2-Mar-21 4:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 4:53
professionalPIEBALDconsult2-Mar-21 4:53 
AnswerRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 5:32
professionalMike Hankey2-Mar-21 5:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 6:58
mvahoney the codewitch2-Mar-21 6:58 
GeneralRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 8:51
professionalMike Hankey2-Mar-21 8:51 
GeneralRe: New code in C? Where and why, versus C++? Pin
Martin ISDN2-Mar-21 22:37
MemberMartin ISDN2-Mar-21 22:37 
AnswerRe: New code in C? Where and why, versus C++? Pin
  Forogar  2-Mar-21 5:46
professional  Forogar  2-Mar-21 5: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.


Straw Poll

On which operating systems are you writing code?
Let's see if things have changed since we last ran this. "writing code" meaning editing, building, and running the code on that OS.
  Results   18 votes