Article View: comp.lang.c++
Article #867Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Keith Thompson
Date: Sun, 15 Nov 2026 02:22
Date: Sun, 15 Nov 2026 02:22
28 lines
2428 bytes
2428 bytes
James Kuyper <jameskuyper@alumni.caltech.edu> writes:
> On 2026-11-14 14:05, Tristan Wibberley wrote:
>> On 06/11/2026 15:33, James Kuyper wrote:
>>> On 2026-11-06 00:35, Keith Thompson wrote:
>>>> James Kuyper <jameskuyper@alumni.caltech.edu> writes:
>>>> [...]
>>>>> Otherwise, one or more parentheses
>>>>> might solve the problem.
>>>>
>>>> Technically correct (the best kind of correct), but *two* or more
>>>> parentheses are even better.
>>>
>>> I should have said "... one or more matched pairs of parentheses ...".
>>
>> You have clearly suffered the pedants more than one man should have to
>> bear. I feel for you.
>
> I am one of the worst pedants you're likely to meet. I cannot object to
> such minor pedantry.
Pedants unite!
And my remark was intended mostly for humorous effect. (Hoping
this doesn't start a debate about whether it was funny.)
--
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:
<11db51g$2ed0n$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> <11cj8ch$24f93$1@dont-email.me> <11cjou8$28l4t$1@kst.eternal-september.org> <11cks0d$2l6em$1@dont-email.me> <11dabef$25o2o$2@dont-email.me> <11db39o$2dura$1@dont-email.me>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: does an expression in a logical statement need parenthesis for proper evaluation? Date: Sat, 14 Nov 2026 18:22:38 -0800 Organization: None to speak of Lines: 28 Message-ID: <11db51g$2ed0n$1@kst.eternal-september.org> References: <11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me> <11cjou8$28l4t$1@kst.eternal-september.org> <11cks0d$2l6em$1@dont-email.me> <11dabef$25o2o$2@dont-email.me> <11db39o$2dura$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 15 Nov 2026 02:22:40 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2569239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hpzT8tGrIO23tFTBSwstb"; posting-host="2d9763eebe5bc4a77b5e4ba4dc597219" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:w6ILtDHOuNXEHkU4zfvOurBR61U= sha256:W/MzXgMsRfMJ6Oi6E21OKRUAk8p9kYPIZHXUtXOVTYA= sha1:Q+y6VbW5wf2Ik8PY2FU1Fwlb3Lc= sha256:2DX+4DB1pDYBNWc/RTB9hGuDOD9aDutZalu2WitG/Rw=