🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A better experimental::scope_exit

#1026
From: Tristan Wibberley
Date: Tue, 24 Nov 2026 19:20
23 lines
2680 bytes
On 24/11/2026 19:04, Tristan Wibberley wrote:
> You can throw and handle
> exceptions within the destructor without terminating, it is only leaking
> of the secondary exception out of the destructor that causes termination.
Hang on, my memory is kicking-in some nuance and that the above is not
outright true. Before C++11 there were more restrictions and the safe
abort had to happen in more situations. C++11 added some features that
made some things easier to do without aborting as much.

I will have to refresh my memory to be able to give my perspective further.

-- 
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: <11e4o1p$33ipm$2@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> <11e45ce$2s6qc$1@raubtier-asyl.eternal-september.org> <11e4n3d$33ipm$1@dont-email.me>

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:20:25 +0000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <11e4o1p$33ipm$2@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>
 <11e45ce$2s6qc$1@raubtier-asyl.eternal-september.org>
 <11e4n3d$33ipm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Nov 2026 19:20:26 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3263286"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18JcVGtLvLmgzzl5N0c2QNqR56lWxiuN/FNiLag2swAGw=="; posting-host="decbdae56b93c9f0180ef0a73d46de56"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:P540ciDP7HNzGCgz90cbB0Px1jg= sha256:oW9aGYdbSc9XphBDmYbD5xpi40ko6wy/HGuC9HnOb9g=
	sha1:8Pqdh9puPB65f2jG94WBcV0GGeE= sha256:JwWcnlOZXKK0mpDwQgN2ndAop9WAAWwzxBBuRkpl8So=
Content-Language: en-GB
In-Reply-To: <11e4n3d$33ipm$1@dont-email.me>