Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: Other programming languages (Was: Command line globber/tokenizer library for C?) Date: Fri, 13 Sep 2024 01:37:08 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: <vc0504$ks2t$1@dont-email.me> References: <lkbjchFebk9U1@mid.individual.net> <vbumi6$8ipp$1@dont-email.me> <vbupqe$1t2d8$1@news.xmission.com> <vbus74$9k96$3@raubtier-asyl.eternal-september.org> <vbusji$1t31q$2@news.xmission.com> <vbut08$9rul$1@raubtier-asyl.eternal-september.org> <vbv212$altk$1@dont-email.me> <vbvq59$esm6$10@dont-email.me> <vbvr73$fdts$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Sep 2024 03:37:08 +0200 (CEST) Injection-Info: dont-email.me; posting-host="fe8eaca0c36637cab02c0b5baab677cf"; logging-data="684125"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MmG/Fn4afjCwzCqoy7TBP" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:urLJi/8jzX+e+pg3q/jXH+wiAFY= Bytes: 1985 On Thu, 12 Sep 2024 18:50:11 -0400, James Kuyper wrote: > On 9/12/24 18:32, Lawrence D'Oliveiro wrote: >> >> On Thu, 12 Sep 2024 17:40:17 +0200, Janis Papanagnou wrote: >> >>> A lot of early C++ programs I've seen were just, umm, "enhanced" "C" >>> programs. >> >> Given that C++ makes “virtual” optional instead of standard behaviour, >> I’d say that C++ is in fact designed to be used that way. > > Like many other aspects of C++, that was dictated by a necessity of > remaining a certain minimum level of backwards compatibility with > existing C code. No it wasn’t. OO was an entirely new feature, with no counterpart in C, so there was nothing to maintain “backwards compatibility” with.