From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9778 invoked from network); 10 Mar 2023 06:15:51 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2023 06:15:51 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 1B588413D2; Fri, 10 Mar 2023 16:15:46 +1000 (AEST) Received: from nsstlmta16p.bpe.bigpond.com (nsstlmta16p.bpe.bigpond.com [203.38.21.16]) by minnie.tuhs.org (Postfix) with ESMTPS id E0A6E413CD for ; Fri, 10 Mar 2023 16:15:40 +1000 (AEST) Received: from smtp.telstra.com ([10.10.24.4]) by nsstlfep16p-svc.bpe.nexus.telstra.com.au with ESMTP id <20230310061539.VKBK10181.nsstlfep16p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Fri, 10 Mar 2023 17:15:39 +1100 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrtddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftpgfvgffnuffvtfetpdfqfgfvnecuuegrihhlohhuthemucegtddtnecunecujfgurhepfffhvffujgfkfhgfgggtsehttddttddtredvnecuhfhrohhmpeffrghvvgcujfhorhhsfhgrlhhluceouggrvhgvsehhohhrshhfrghllhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeiteejueeuhfefgeeuvdduieefvedugfevtdffkefhffejkefhuddtteehtefhnecukfhppeduuddtrddugedurdduleefrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheprghnvghurhhinhdrhhhorhhsfhgrlhhlrdhorhhgpdhinhgvthepuddutddrudeguddrudelfedrvdeffedpmhgrihhlfhhrohhmpegurghvvgeshhhorhhsfhgrlhhlrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtohepthhuhhhssehtuhhhshdrohhrghdprhgvvhfkrfeptghpvgdquddutddqudeguddqudelfedqvdeffedrnhhsfidrrghsphdrthgvlhhsthhrrgdrnhgvthdpghgvohfkrfeptegfpdfovfetjfhoshhtpehnshhsthhlrhhguddvphdqshhvtg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from aneurin.horsfall.org (110.141.193.233) by smtp.telstra.com (5.8.812) id 6407D7E90078B10D for tuhs@tuhs.org; Fri, 10 Mar 2023 17:15:39 +1100 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id 32A6Fctk056023 for ; Fri, 10 Mar 2023 17:15:38 +1100 (EST) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by aneurin.horsfall.org (8.15.2/8.15.2/Submit) with ESMTP id 32A6FcL2056020 for ; Fri, 10 Mar 2023 17:15:38 +1100 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Fri, 10 Mar 2023 17:15:38 +1100 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society In-Reply-To: Message-ID: References: <20230309230130.q4I-f%steffen@sdaoden.eu> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) X-GPG-Public-Key: http://www.horsfall.org/gpgkey.pub X-GPG-Fingerprint: 05B4 FFBC 0218 B438 66E0 587B EF46 7357 EF5E F58B X-Home-Page: http://www.horsfall.org/ X-Witty-Saying: "chmod 666 the_mode_of_the_beast" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-ID-Hash: NEJS2LKXAL7Q5KS4H667ASHCFH55IGY6 X-Message-ID-Hash: NEJS2LKXAL7Q5KS4H667ASHCFH55IGY6 X-MailFrom: dave@horsfall.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: I can't drive 55: "GOTO considered harmful" 55th anniversary List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 9 Mar 2023, Warner Losh wrote: > In C I use it all the time to do goto err for common error recovery > because C doesn't have anything better. Me too :-) Seriously, I also use setjmp()/longjmp() for a more elegant exit from a deeply-nested loop; "break N" to break out of "N" loops, anyone? I haven't found that yet... Of course, in those days it was setexit() etc :-) -- Dave