Article View: comp.lang.c++
Article #792Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Janis Papanagnou
Date: Sun, 08 Nov 2026 00:30
Date: Sun, 08 Nov 2026 00:30
33 lines
2939 bytes
2939 bytes
On 2026-11-07 21:39, Lynn McGuire wrote: > On 11/7/2026 1:39 PM, Janis Papanagnou wrote: >> [...] >> While looking into the Net and concerning this thread I stumbled >> across this reply, though: >> "f2c or pet (for Fortran/C): Older research tools designed >> to parse flat code graphs and reconstruct clean, structured >> if/else and loop components." >> which gave the impression that 'f2c' would be able to remove those >> 'goto's and so I'm wondering why there's (still) 'goto's in the >> OP's sample code. > > F2C is automagically restructuring my code to the first level. Maybe > the second level sometimes. The number of gotos is reduced by 80 or > 90%. Way past the point that I don't care. If a goto is jumping > halfway down a method then replacing it with a monster if then is just > crazy so F2C skips that case. I am not modifying F2C anymore. Thanks for that background information. > If wanted, I can post comparisons of a couple of my subroutines and the > resulting methods. Don't bother, since I'm not doing Fortran, I was just interested in principle here. Your numbers of 80-90% reduction is, I think, quite good already. But given that your C-code sample's label number is still "L463" I don't want to see that code; I'm still traumatized by the code that I had tried to de-goto-fy not long ago. Janis
Technical Details
Message-ID:
<11cofqc$3svb5$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> <11cn35u$3cl3b$2@dont-email.me> <11cnuq2$23539$12@dont-email.me> <11co2au$3pku5$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: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Sun, 8 Nov 2026 01:30:04 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: <11cofqc$3svb5$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> <11cn35u$3cl3b$2@dont-email.me> <11cnuq2$23539$12@dont-email.me> <11co2au$3pku5$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 08 Nov 2026 00:30:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4095333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zB54cHGVNq6pRy6C2cEn4"; posting-host="5de6c94890ae7733252fe6e89539e064" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:yAETqDDN73TslQXPL9pD9boITV0= sha256:yPdwQefs+nCYPSuvJdT0ChiEQ9MAzXFYhkT0CUD2SL4= sha1:hr5N/NpRsE1wgZB3BIokLjIRtOA= sha256:Ofu/p9k6s2cv4MvMW5mMwEKU+egC3Z+VB1qeRTz7ido= In-Reply-To: <11co2au$3pku5$1@dont-email.me> Content-Language: en-US