🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A better experimental::scope_exit

#1029
From: Tristan Wibberley
Date: Tue, 24 Nov 2026 20:18
26 lines
2806 bytes
On 24/11/2026 19:22, Ross Finlayson wrote:
> destructors should have no side effects (that can throw)

That's merely a deduction from contensive ontology which, as you know,
is typically a matter of fantasy: 'I call them "destructor" therefore
they should not throw'. But their extensional properties are of things
that can throw: "Throwing in them can mean the right thing therefore
they may throw".

In fact they're scope-hooks at the same time so which of the succeeding
program addresses (Dijkstra) should run after they run and in which
conditions is the important question: "all of them all of the time" is
not correct.

-- 
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: <11e4rek$351uk$1@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> <AF-dnZwPEcxqfpj2nZ2dnZfqnPidnZ2d@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 20:18:28 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11e4rek$351uk$1@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>
 <AF-dnZwPEcxqfpj2nZ2dnZfqnPidnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 24 Nov 2026 20:18:28 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3311572"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19LpK1I2mNbWaI+jwoOUvQUH5ohZNfw91ZYLDdX7jy92A=="; posting-host="decbdae56b93c9f0180ef0a73d46de56"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:D6sHUnwybC5IS9WlbW35K9wy2yM= sha256:KFQ9Ppqvy6Z9qgOTBS99NYQd0Sic5miiyFEbFXpsmd4=
	sha1:YBWX3nFfp93luWS37mJ0xs5+8xY= sha256:/MqsqJUFbGFSXVQj/2PJIKULLhPlE4jCHu5PsrNvxds=
In-Reply-To: <AF-dnZwPEcxqfpj2nZ2dnZfqnPidnZ2d@giganews.com>
Content-Language: en-GB