Article View: comp.lang.c
Article #1974Re: C and its peasant 'ancestors'
From: Kaz Kylheku
Date: Sun, 29 Nov 2026 18:18
Date: Sun, 29 Nov 2026 18:18
31 lines
3080 bytes
3080 bytes
On 2026-11-29, Scott Lurndal <scott@slp53.sl.home> 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). In the late 1990s I dug into the source code of a popular telnet package used by distros and was surprised to find C++ with abstract base classes and virtual functions, dating back to the early 1990s. (The issue I patched for myself at that time was that the telnet program aborted the connection at any socket error bubbling up whatsoever, even temporary unreachable conditions, like my PPP connection re-dialing.) -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca
Technical Details
Message-ID:
<20261129101608.931@kylheku.com>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-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> <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: Kaz Kylheku <046-301-5902@kylheku.com> Newsgroups: comp.lang.c Subject: Re: C and its peasant 'ancestors' Date: Sun, 29 Nov 2026 18:18:19 -0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: <20261129101608.931@kylheku.com> 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> Injection-Date: Sun, 29 Nov 2026 18:18:20 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3930125"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+as1UTBeG+HE0IVQxS6G8a8EgM+JY6Sz4="; posting-host="fea0462860a904eaa13657948cd28e6a" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:G74ufCZDgepv8jrewAXB/W4YUvc= sha256:TzvR18zJFQpE3lk8AKVWa/+vSKpBvInhw07rXYNRd7k= sha1:PSUFrtiF8k/4BHUoQimrYZnBjtA= sha256:otAWx/A6HAQhz7t3lSK893zM9Cib1Ft39DwMQyU4KNs=