Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c Subject: Re: How About Disallowing Assignments In Expressions? Date: Mon, 19 Feb 2024 10:15:26 +0000 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87o7ccg3pd.fsf@bsb.me.uk> References: <87il2vbvza.fsf@nosuchdomain.example.com> <87il2s9fdj.fsf@nosuchdomain.example.com> <20240218110946.00007b8d@yahoo.com> <87zfvxiiqi.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="35307a75fbd0b3137ff8d97b5fa03eb1"; logging-data="1917829"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186ItocDWLvTj15/suZdnhewHg4cDWu444=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:DCEQyeY8zvX3NcfML+OeS8RmKkg= sha1:cF5XrfnYteTgL/LZPhZQ+IFzfuY= X-BSB-Auth: 1.dde22f6d2fe250238ea5.20240219101526GMT.87o7ccg3pd.fsf@bsb.me.uk Xref: csiph.com comp.lang.c:382754 Janis Papanagnou writes: > On 18.02.2024 22:07, Ben Bacarisse wrote: >> >> The replies to your tendentious advice seem to be vying for maximum >> obfuscation. This should not written as a 'for' loop at all; it's a >> natural 'while' loop: > > Yes, but the original post contained an specific for() based example > and the topic was about local declaration not about the best control > construct. Oh. It seemed like you were suggesting an improvement to the posted code. -- Ben.