Article View: comp.lang.c++
Article #926Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthesis for proper evaluation?)
From: David Brown
Date: Thu, 19 Nov 2026 07:39
Date: Thu, 19 Nov 2026 07:39
40 lines
4240 bytes
4240 bytes
On 18/11/2026 23:44, Keith Thompson wrote: > Ross Finlayson <ross.a.finlayson@gmail.com> writes: > [word salad snipped > >> About C and C++ together being C/C++, the compiler/front-end >> treats them all the same and even has "FORTRAN" in there too, >> I don't much know FORTRAN, yet it's among "models of computation" >> with "process models" and "resource models", in: "models of >> communication", resulting "object files" with "C symbol exports >> and C++ name-manglig C symbol exports". > > That one paragraph of your post, unlike the preceding ones, was > fairly straightforward. It was also incorrect. > > C and C++ compilers do not share a front end. There are compiler > systems (gcc, clang, MS Visual Studio, probably others) that can > compile either C or C++, but they have distinct front-ends, even > if they share a common language-independent back-end. > > C and C++ have different grammars. For example, "class" is a keyword > in C++ but not in C. I'm fairly sure there is no compiler whose > parser component, when processing "int class;", will check which > language it's compiling to determine whether that's a declaration > or a syntax error. There's a C front-end that includes a C parser > that treats "class" as an ordinary identifier, and a C++ front-end > that includes a C++ parser that treats "class" as a keyword. > > C and C++ are distinct languages. They are treated by implementations > as distinct languages. "C/C++" is a meaningless marketing term. > To be fair, "C/C++" was not as meaningless in the very early days of C++ when the language was an experimental "C with classes" extension to C. Thus there is the rather well-renowned "C/C++ Users Journal". But by the time Stroustrup's "The C++ Programming Language" was published in 1985, I would say C++ was established as its own language independent of (but cooperating with) C. Other people may pick a different date or event for the division, but they have certainly been distinct languages for a very long time now.
Technical Details
Message-ID:
<11dm94c$21u9i$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dg2uf$3vgth$1@kst.eternal-september.org> <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com> <11diid8$q4aj$2@kst.eternal-september.org> <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com> <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me> <11djsoh$17he7$1@dont-email.me> <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com> <11dl9ou$1p00u$1@kst.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthesis for proper evaluation?) Date: Thu, 19 Nov 2026 08:39:56 +0100 Organization: A noiseless patient Spider Lines: 40 Message-ID: <11dm94c$21u9i$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11d54u2$863c$1@dont-email.me> <11d5eg2$bfhu$1@dont-email.me> <11d6if2$lqnd$1@dont-email.me> <11d7a99$th7r$1@dont-email.me> <11d7f1t$1839o$1@dont-email.me> <11d82gp$1f70n$1@dont-email.me> <11dc7da$2nu91$1@dont-email.me> <pimdnUKCD4LIRGf3nZ2dnZfqnPWdnZ2d@giganews.com> <11depuh$3gu10$1@dont-email.me> <gLmdnYGfb6w4cmf3nZ2dnZfqn_GdnZ2d@giganews.com> <11df2i3$3k156$1@dont-email.me> <2eacnY2oHImorWb3nZ2dnZfqnPudnZ2d@giganews.com> <11dg2uf$3vgth$1@kst.eternal-september.org> <-OqdnSRYr8ZbiGH3nZ2dnZfqn_GdnZ2d@giganews.com> <11diid8$q4aj$2@kst.eternal-september.org> <jzadncOUl7VebWH3nZ2dnZfqn_WdnZ2d@giganews.com> <11djku9$14q9v$1@dont-email.me> <11djohu$s03n$5@dont-email.me> <11djsoh$17he7$1@dont-email.me> <JzOdnc2k5ZGeHmD3nZ2dnZfqn_qdnZ2d@giganews.com> <11dl9ou$1p00u$1@kst.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 19 Nov 2026 07:39:57 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2160946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EiRyuZcqY+P2f5KhJdksFf5977gp9nsk="; posting-host="556aadbd60d719954dca0c62f2f7f80e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:7h9XhvwhYAzyVKHJAxR+rHsUKhU= sha256:dQdGA2GV4ArwcNQGPhz1bGhLfoQ4JnAi3NZjid/63tw= sha1:Cv6sfl4pIZN9QsBbev8z0Jwp/b0= sha256:k2PwY+3lmwZgLCxyYoYlTKyBQN7Ww0/N+bx16qDJWcA= In-Reply-To: <11dl9ou$1p00u$1@kst.eternal-september.org> Content-Language: en-GB