🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1979

Re: C and its peasant 'ancestors'

#1979
From: Chris M. Thomasson
Date: Sun, 29 Nov 2026 21:19
36 lines
3196 bytes
On 11/29/2026 8:19 AM, Scott Lurndal wrote:
> 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).

For sure! Actually, here is an old one of mine:

https://pastebin.com/raw/f52a443b1
(no ads, raw text for sure)


> 
>> 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: <11ei4th$3s8d4$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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> <AgYOS.103415$mfg4.16519@fx36.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: C and its peasant 'ancestors'
Date: Sun, 29 Nov 2026 13:19:44 -0800
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <11ei4th$3s8d4$1@dont-email.me>
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> <AgYOS.103415$mfg4.16519@fx36.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Nov 2026 21:19:46 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4071844"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18XkcO1m2f7iZDd6ZxmHTgqnFRkYbT85dQ="; posting-host="154a170364bb3f201858dda21f806e24"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:k7ktV5kCCjoUchaiQQWWCUM+tNo= sha256:iM7U1l3bi74ZAKC70Iv2H8z0uZc3/LEIlOaM3nHEH50=
	sha1:NVDtw46zkWT3PF48YEbQROT+1k4= sha256:Fy1kdjgMp2yZQhuEyVdPv9VNiOq7B1FyKgeoyPsbttw=
In-Reply-To: <AgYOS.103415$mfg4.16519@fx36.iad>
Content-Language: en-US