Deutsch English Français Italiano |
<vsph6b$ce6m$5@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: Thiago Adams <thiago.adams@gmail.com> Newsgroups: comp.lang.c Subject: Re: do { quit; } else { } Date: Fri, 4 Apr 2025 17:58:51 -0300 Organization: A noiseless patient Spider Lines: 34 Message-ID: <vsph6b$ce6m$5@dont-email.me> References: <vspbjh$8dvd$1@dont-email.me> <8634enhcui.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 04 Apr 2025 22:58:51 +0200 (CEST) Injection-Info: dont-email.me; posting-host="26bb03f5d8244956539c851a3efacaaf"; logging-data="407766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/FTyBRYED10Wz6F2L2ip40VOkrbOtx74=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Ked4p5cyVnUkDeJ7W2laSFqkrfc= In-Reply-To: <8634enhcui.fsf@linuxsc.com> Content-Language: en-GB Em 4/4/2025 5:48 PM, Tim Rentsch escreveu: > Thiago Adams <thiago.adams@gmail.com> writes: > >> What do you think of this control block? >> >> do >> { >> FILE f = fopen("file.txt", "r"); >> >> if (f == NULL) quit; /*goes to else part*/ >> >> /*success here*/ >> for (int i =0; i < 10; i++){ >> ... >> if (error) quit; >> } >> >> } >> else >> { >> /*some error*/ >> } > > I think it doesn't belong in comp.lang.c. > > I also think you have been participating in comp.lang.c > long enough to know better. Kindly take your language > fantasies somewhere else. I think the only reason you're saying that is because it's not implemented in GCC, Clang, or maybe even MSVC. I've never seen you complain about any GCC extensions here.