Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: this girl calls c ugly Date: Tue, 02 Jun 2026 04:16:48 -0700 Organization: A noiseless patient Spider Lines: 23 Message-ID: <86mrxdchun.fsf@linuxsc.com> References: <10v7b32$2u85v$1@dont-email.me> <10vcqjc$con8$1@dont-email.me> <10vcui4$buur$3@kst.eternal-september.org> <10vd1tu$ekvl$1@dont-email.me> <10vel6r$l1g$1@reader1.panix.com> <10vemqf$r5qe$1@dont-email.me> <10vfsmo$16jap$1@kst.eternal-september.org> <10vgqhf$1d6tp$1@dont-email.me> <86tsrnefac.fsf@linuxsc.com> <10vhq39$1lpo1$1@dont-email.me> <10vjdn8$22tgu$1@dont-email.me> <10vjnv7$25mnf$1@dont-email.me> <10vku5o$2glfs$2@kst.eternal-september.org> <10vl02a$2glfs$4@kst.eternal-september.org> <10vltvd$2ne3j$1@dont-email.me> <10vm6h4$2qdor$1@kst.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 02 Jun 2026 11:16:49 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3011001"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LtGuhtwLYfUNSlpTZd8EU4TGGJOaVkPA="; posting-host="083f4b0f6298cfc58dbdfdd9508127b4" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:gm0xMWux+tTz7oM4hhanCGc+wcA= sha1:x15Du4wWfXn7OHzJ5gFuFRvX8Ds= sha256:3aN/noExeS1JEowK9N26ZYKOG53ogxmCCCJtNerG3mE= sha1:zy1tIaTUSYd+8OnffVPbZyt4qd4= Xref: csiph.com comp.lang.c:399613 Keith Thompson writes: [syntax for conditional expressions] > Looking at the grammar in the C++ standard, there is a difference. > C has: > > conditional-expression: > logical-OR-expression > logical-OR-expression ? expression : conditional-expression > > while C++ has: > > conditional-expression: > logical-or-expression > logical-or-expression ? expression : assignment-expression > > But the difference isn't mentioned in the Compatibility annex of the > C++ standard. Like I have said before, there are lots of differences between C and C++ that aren't mentioned in the Compatibility annex of the C++ standard. It isn't surprising to find another one.