Article View: comp.lang.c++
Article #1009Re: A better experimental::scope_exit
From: Bonita Montero
Date: Mon, 23 Nov 2026 15:54
Date: Mon, 23 Nov 2026 15:54
31 lines
2875 bytes
2875 bytes
Am 23.11.2026 um 16:45 schrieb David Brown: > Claiming things are "obvious" or that others "lack imagination" is > an excuse for being unable or unwilling to explain your own thoughts. It's just one screenpage of code. And the code itself is simpler than any real world application. So where's the problem ? > If you have trouble explaining things, then the suggestions below will > help. If you are simply unwilling to do so, then why bother posting > the code in the first place? It is unusable to others as it is, and > contains nothing particularly innovative. Then you still don't understand what I did. > Figure out what you want to achieve. Figure out how the code should be > used. Specify it, describe it, document it. Show examples. Compare it > to existing solutions. Show why your "defer" class with "Dependent" > pointers is necessary, and better than a single "standard" scope_exit > function that does more than one thing, or multiple "standard" > scope_exit calls. The ide is somewhat unusual, but as the code is very short it's not hard to understand. > Explain why single "Dependent" is enough, rather than accepting multiple > "Dependents". Explain what you mean by "Dependent" in the first place. I see: you didn't understand the code. The dependents could be cascaded.
Technical Details
Message-ID:
<11e1nk8$20rs6$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.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> <11e1is8$1ur7r$1@raubtier-asyl.eternal-september.org> <11e1n3c$20kso$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.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 16:54:48 +0100 Organization: A noiseless patient Spider Lines: 31 Message-ID: <11e1nk8$20rs6$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> <11e1is8$1ur7r$1@raubtier-asyl.eternal-september.org> <11e1n3c$20kso$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 23 Nov 2026 15:54:49 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="2125702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ic0LfI6SAosqJm1x/1u9u/7kM3CWknQI="; posting-host="6d91dc74f77a8fc154aca66c0d8ca15e" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:XdSHH2jzKiRa2PI3XIV0QSaMLh0= sha256:AcOTjzZDU6sxDpJZIuaiJxS5Te+EJOLYCiU74G9Wu5M= sha1:OxQ5aQQGDjxb9C2v8rp+3vjl7MA= sha256:6y6PahXxWNWcfTOwkUht3fln9tI/Ugb3rZgy9m2fZzs= In-Reply-To: <11e1n3c$20kso$1@dont-email.me> Content-Language: de-DE