Deutsch English Français Italiano |
<vtm22f$42jp$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: do { quit; } else { } Date: Tue, 15 Apr 2025 17:38:40 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: <vtm22f$42jp$1@dont-email.me> References: <vspbjh$8dvd$1@dont-email.me> <vtbn2k$293r1$1@dont-email.me> <vtc19j$2kqlj$1@dont-email.me> <87a58mqt2o.fsf@nosuchdomain.example.com> <vtc7mp$2q5hr$1@dont-email.me> <vtcqf6$3j95s$1@dont-email.me> <vtdh4q$b3kt$1@dont-email.me> <vtf7fe$1qtpg$1@dont-email.me> <vtgfuf$31ug1$1@dont-email.me> <20250413072027.219@kylheku.com> <vtgpce$39229$1@dont-email.me> <20250414155907.846@kylheku.com> <vtk9k7$2fucn$1@dont-email.me> <_ItLP.2610978$TBhc.1647602@fx16.iad> <vtlrbq$3tc1l$4@dont-email.me> <eZuLP.2068349$eNx6.243239@fx14.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Apr 2025 18:38:40 +0200 (CEST) Injection-Info: dont-email.me; posting-host="cec4580467d8bef69918f71b92c931ef"; logging-data="133753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vYWZxcwP/Mu0igWR3gCxh" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:T7dmhwyoPC2eu1zfse5paixtb1w= Content-Language: en-GB In-Reply-To: <eZuLP.2068349$eNx6.243239@fx14.iad> On 15/04/2025 16:31, Scott Lurndal wrote: > bart <bc@freeuk.com> writes: >> On 15/04/2025 15:05, Scott Lurndal wrote: > >> >> >> What about this one: >> >> for(i = 0; j < N; k++) > > Any fool can write bad code in any language, including yours. > It is impossible to write such a *FOR* loop in any language that actually implements it properly. C's 'FOR' loop is misnomer for a weird feature that is like 'while' but with three components. A feature where there is virtually no checking so that it can comprise any kind of nonsense. It doesn't have a dedicated feature for iterating a variable over a range.