Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: do { quit; } else { } Date: Sun, 06 Apr 2025 05:47:47 -0700 Organization: A noiseless patient Spider Lines: 54 Message-ID: <86ldsdfocs.fsf@linuxsc.com> References: <8634enhcui.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 06 Apr 2025 14:47:47 +0200 (CEST) Injection-Info: dont-email.me; posting-host="041fd418ef8b485cdd75dbfc4b2fa6be"; logging-data="1042689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v9AhxGYKLIyGszrlEnaWq8Xf7iJlS4iY=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:gnvdG+sXRdoOn7OK/e12gAwE2tw= sha1:2Sz2Fpp8YrfQ0Xd6j9JFBCa5d2Y= Thiago Adams writes: > Em 4/4/2025 5:48 PM, Tim Rentsch escreveu: > >> Thiago Adams 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. You are wrong. I responded because there is nothing in your posting that is suitable for comp.lang.c. > I've never seen you complain about any GCC extensions here. I don't remember seeing any posting in comp.lang.c that discusses a gcc extension and nothing else. There are plenty of postings that mention gcc extensions in passing, along with other material that talks about C, but never one that discusses gcc extensions exclusively. Furthermore, even if there had been a posting that concerns only a gcc extension and nothing else, and is one I didn't respond to, that doesn't excuse your action. It isn't like this is the first time you have posted something here that is not about C but only about your fantasy language, and also not the first time the unsuitability of such postings has been pointed out. You're a repeat offender. So stop pretending you are being picked on for no reason.