Article View: comp.lang.c++
Article #922Re: [meta] O tempora, o mores! (was Re: does an expression in a logical statement need parenthesis for proper evaluation?)
From: Keith Thompson
Date: Wed, 18 Nov 2026 22:44
Date: Wed, 18 Nov 2026 22:44
32 lines
3579 bytes
3579 bytes
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.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11dl9ou$1p00u$1@kst.eternal-september.org>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!kst.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>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!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> 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: Wed, 18 Nov 2026 14:44:44 -0800 Organization: None to speak of Lines: 32 Message-ID: <11dl9ou$1p00u$1@kst.eternal-september.org> 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> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 18 Nov 2026 22:44:46 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="1867806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7/Zm8+QWfNZudJa2nQjlw"; posting-host="38a0272be55613828d7088b9a912db21" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:HbGE/aKnfOFwym2BFSdlPlXD2tA= sha256:dtHM9dJWwA9W7zlLITfmcS6tim8isHBdzyI7LaonjcQ= sha1:Q+UoOs470YMvO04HwCbe5S4pMnM= sha256:IyR21SLHdt4WRpJ7+2RoenVo61Y1ZXs12BMHmoUb46M=