Article View: comp.lang.c
Article #1970Re: C and its peasant 'ancestors'
From: Scott Lurndal
Date: Sun, 29 Nov 2026 16:19
Date: Sun, 29 Nov 2026 16:19
27 lines
2616 bytes
2616 bytes
David Brown <david.brown@hesbynett.no> writes: >On 28/11/2026 19:47, Scott Lurndal wrote: >> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> writes: >>> On Thu, 26 Nov 2026 12:48:26 +0100, Bonita Montero wrote: <snip> >> C with classes isn't a bad description - one receives all the >> benefits of data hiding and inheritance provided by the class paradigm without >> the overhead required for stack unwinding and dynamic_cast<>. > >There's a /lot/ more than just "C with classes" that is appropriate for >low-level, bare metal and/or embedded programming in C++. It is >typically more a matter of what you want to avoid - dynamic memory, >virtual functions (usually), Commercial operating systems have used "virtual functions" in C pretty extensively over the last forty years (consider the Unix VFS layer or generic device driver interfaces for example). > exceptions, and anything else that has >unexpected or unpredictable runtime costs. I use a large number of C++ >features in my small-systems embedded programming, but you do have to >know what to avoid. (I also avoid malloc/free and a number of other >features and functions of C in embedded programming, but it is more >obvious which should be avoided.) Agreed.
Technical Details
Message-ID:
<AgYOS.103415$mfg4.16519@fx36.iad>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news-out.netnews.com!s1-2.netnews.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx36.iad.POSTED!not-for-mailReferences:
<11dup6q$v4j9$1@dont-email.me> <11e8ti0$hhqa$1@dont-email.me> <11e8v24$i2mc$2@raubtier-asyl.eternal-september.org> <11e9045$ihk3$1@dont-email.me> <11e90a8$ikh0$1@dont-email.me> <11e90mv$io87$2@raubtier-asyl.eternal-september.org> <11e91ns$j5dv$1@dont-email.me> <11e92ff$jclo$1@raubtier-asyl.eternal-september.org> <11e95j2$kimu$1@dont-email.me> <11e96aa$kpta$1@raubtier-asyl.eternal-september.org> <11ect54$20qpr$3@dont-email.me> <klFOS.164599$ZAo7.102690@fx18.iad> <11efabi$2rvk1$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news-out.netnews.com!s1-2.netnews.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx36.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: C and its peasant 'ancestors' Newsgroups: comp.lang.c References: <11dup6q$v4j9$1@dont-email.me> <11e8ti0$hhqa$1@dont-email.me> <11e8v24$i2mc$2@raubtier-asyl.eternal-september.org> <11e9045$ihk3$1@dont-email.me> <11e90a8$ikh0$1@dont-email.me> <11e90mv$io87$2@raubtier-asyl.eternal-september.org> <11e91ns$j5dv$1@dont-email.me> <11e92ff$jclo$1@raubtier-asyl.eternal-september.org> <11e95j2$kimu$1@dont-email.me> <11e96aa$kpta$1@raubtier-asyl.eternal-september.org> <11ect54$20qpr$3@dont-email.me> <klFOS.164599$ZAo7.102690@fx18.iad> <11efabi$2rvk1$2@dont-email.me> Lines: 27 Message-ID: <AgYOS.103415$mfg4.16519@fx36.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Sun, 29 Nov 2026 16:19:44 UTC Organization: UsenetServer - www.usenetserver.com Date: Sun, 29 Nov 2026 16:19:44 GMT X-Received-Bytes: 2302