🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1028

Re: A better experimental::scope_exit

#1028
From: Tristan Wibberley
Date: Tue, 24 Nov 2026 19:24
26 lines
2639 bytes
On 24/11/2026 16:59, Ross Finlayson wrote:
> has the usual
> account that code that swallows exceptions that aren't specifically
> modeled after error-modeling and exception-modeling as well-defined,
> is undefined behavior.

And so much for catch (...).

If I can, I prefer to fork a child process and let the exception be
handle by process abort of uncaught exceptions, the wider loop absorbs
it with invariants intact (the missing process makes its own invariants
go away - at the system level they're conditional on their own process
existing).

-- 
Tristan Wibberley

The message body is Copyright (C) 2026 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID: <11e4o9n$33ipm$3@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11e2kpl$2cc7p$1@dont-email.me> <11e39t7$2ia0c$1@raubtier-asyl.eternal-september.org> <11e40mr$2qdb1$1@dont-email.me> <t_adnbNl1dzyX5j2nZ2dnZfqn_SdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk>
Newsgroups: comp.lang.c++
Subject: Re: A better experimental::scope_exit
Date: Tue, 24 Nov 2026 19:24:39 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11e4o9n$33ipm$3@dont-email.me>
References: <11dsk17$8ske$2@raubtier-asyl.eternal-september.org>
 <11e2kpl$2cc7p$1@dont-email.me>
 <11e39t7$2ia0c$1@raubtier-asyl.eternal-september.org>
 <11e40mr$2qdb1$1@dont-email.me>
 <t_adnbNl1dzyX5j2nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Nov 2026 19:24:39 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3263286"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1905jZa/Y4pmw13JOU+02huTfpubBjt3298bPDMDvU0cQ=="; posting-host="decbdae56b93c9f0180ef0a73d46de56"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9ly1WhVz6rjFcNKMCInWw2ecSn0= sha256:bgbhIIGueLgINKNiHlIldTaM44CjSu9mwXtrZsbBTSo=
	sha1:kprqKgIhXQRWgp85k0Vg4F2EBJ4= sha256:ESud1yZ0Ld/NO6oH/zuoriVoGwM4v8MZFErMDRdoj50=
In-Reply-To: <t_adnbNl1dzyX5j2nZ2dnZfqn_SdnZ2d@giganews.com>
Content-Language: en-GB