Article View: comp.lang.c
Article #1251Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Lynn McGuire
Date: Sun, 08 Nov 2026 01:13
Date: Sun, 08 Nov 2026 01:13
38 lines
3063 bytes
3063 bytes
On 11/7/2026 6:30 PM, Janis Papanagnou wrote: > 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 At least I do not have any "come from"s in my code. Lynn
Technical Details
Message-ID:
<11coibi$3upjb$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> <11cofqc$3svb5$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: Lynn McGuire <lynnmcguire5@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, 7 Nov 2026 19:13:20 -0600 Organization: A noiseless patient Spider Lines: 38 Message-ID: <11coibi$3upjb$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> <11cofqc$3svb5$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 01:13:23 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4154987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fSMRnaAUKNmQw35ooasUoHX+my6odYpY="; posting-host="41c8e03b48f7ca0425ae228f982c6e0e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:dN8MNMnDsj3ZG+OuyCZk63dijFc= sha256:CE6cbAvrM1pagQcwReO6+UBUZFfNN9tklG7Y5ifxptg= sha1:JT4EnrBnn4u379y3wJ+VdT6xpEw= sha256:TEDyKIL+AeXNwRyQfFyEy3QmaDhgUAHjRLoPw9qj2X4= In-Reply-To: <11cofqc$3svb5$1@dont-email.me> Content-Language: en-US