Article View: comp.lang.c++
Article #771Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Lawrence D’Oliveiro
Date: Fri, 06 Nov 2026 21:51
Date: Fri, 06 Nov 2026 21:51
13 lines
2081 bytes
2081 bytes
On Fri, 6 Nov 2026 15:27:44 -0600, Lynn McGuire wrote: > Yup, I am moving to C++ totally. Actually, a very mild version of > C++ for my 850,000 line calculation engine. No classes, all > character strings in std::string variables, and a few other things. > The old Fortran code was not type safe at all, the new C++ code is > trying to use type safety everywhere. One thing I found useful in C++ code is using the explicit “xxx_cast<...>” operators instead of the catch-all C-style prefix-with-type-spec-in-parentheses. These are easier to search for, and also easier to make more specific (i.e. only using reinterpret_cast<> where absolutely necessary).
Technical Details
Message-ID:
<11cli5t$2tv6e$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cj994$24m06$1@dont-email.me> <11ck0pr$2amtc$1@dont-email.me> <11cl7i3$2pbh3$1@kst.eternal-september.org> <11clgoj$2tiij$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Fri, 6 Nov 2026 21:51:58 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: <11cli5t$2tv6e$1@dont-email.me> References: <11cj4a0$23796$1@dont-email.me> <11cj994$24m06$1@dont-email.me> <11ck0pr$2amtc$1@dont-email.me> <11cl7i3$2pbh3$1@kst.eternal-september.org> <11clgoj$2tiij$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 21:51:58 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3079374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+e4uZvtY9WxPqZYygRAz+S"; posting-host="805450eec5e4df4938c911987d9875f0" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:yV9gj8O7FaqjUhi0ojgQWlNMv8c= sha256:GbqsjNRynkQZMq5v3237GO/tv+ijQpAD/fxZevm45Ts= sha1:5TCSRpjIqX8rVlZ8nFTD5heR7Os= sha256:MjlccjOsdHLHcVtglyYaTdIKgbuFxjUO3ioSm35WWLY=