Article View: comp.lang.c++
Article #1007Re: A better experimental::scope_exit
From: Bonita Montero
Date: Mon, 23 Nov 2026 14:33
Date: Mon, 23 Nov 2026 14:33
23 lines
2201 bytes
2201 bytes
Am 23.11.2026 um 15:19 schrieb David Brown: > That is not an example - it's a vague idea of an imagined use-case. Ususally I don't cascade. But I had this usecase multiple times when applying several changes on a data structure where each operation could fail with an exception. > Try showing an example, using your scope_exit. Can't you imagine the purpose from the code - poor ! > Compare it with alternatives. ... experimental::scope_exit hasn't cascading and no explicit run(). > Then we will be able to see if and why your code is better, > and also get an idea whether it would be better to have > it in addition to normal scope_exit features, rather than > instead of them. You really have a lack of imagination. Or you don't understand the code.
Technical Details
Message-ID:
<11e1is8$1ur7r$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11e1bd7$1rqma$1@dont-email.me> <11e1gtl$1u1jq$1@raubtier-asyl.eternal-september.org> <11e1i1q$1ugou$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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: A better experimental::scope_exit Date: Mon, 23 Nov 2026 15:33:45 +0100 Organization: A noiseless patient Spider Lines: 23 Message-ID: <11e1is8$1ur7r$1@raubtier-asyl.eternal-september.org> References: <11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11e1bd7$1rqma$1@dont-email.me> <11e1gtl$1u1jq$1@raubtier-asyl.eternal-september.org> <11e1i1q$1ugou$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 23 Nov 2026 14:33:44 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="2059515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6y2oKSFhxFVzx1S8Wgd/GWWekKnXXO4E="; posting-host="6d91dc74f77a8fc154aca66c0d8ca15e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:3RcQhyrMXo/VyOv+oH6mpfw9b9M= sha256:tOmHgG6SAzV2pVud3+w+/upWCXWCMZMSe0tWgqigRZo= sha1:qRCIs9n0WBED73tCjv2w/FJp+ik= sha256:JDlI2zSqCaNF32uFkG8HNn8g/OzAcLj+1zdvkAqSMMw= In-Reply-To: <11e1i1q$1ugou$1@dont-email.me> Content-Language: de-DE