Article View: comp.lang.c
Article #1275Re: C: a question about scope automatics in C
From: Michael S
Date: Mon, 02 Nov 2026 21:53
Date: Mon, 02 Nov 2026 21:53
26 lines
2269 bytes
2269 bytes
On Mon, 2 Nov 2026 10:38:44 -0800 Ross Finlayson <ross.a.finlayson@gmail.com> wrote: > C: a question about scope automatics in C > > Hello, I hope someone can tell me whether C may make > for scope automatics any account of attaching side-effects > to block-declared variables about scope-exit of automatics > making for any way in C to attach behavior to scope-exit, > or any way to make for when a variable goes out of scope > (block-scope, or, function-scope) to make any account of > cleanup of it. C++ of course has that's the usual way of > things with stack-allocation and block-scope for automatics, > I'm wondering if there's any way C makes it so (I think not, > yet would be glad to know so). > > > If not, are there common compiler extensions to so indicate > when a variable goes out of scope and make effects on it? > > Thanks for reading, also I'd be interested your opinion. > If you or somebody else translates your question to English, it will greatly increase your chance of getting the answer.
Technical Details
Message-ID:
<20261102235348.000056e9@yahoo.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: C: a question about scope automatics in C Date: Mon, 2 Nov 2026 23:53:48 +0200 Organization: A noiseless patient Spider Lines: 26 Message-ID: <20261102235348.000056e9@yahoo.com> References: <oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Mon, 02 Nov 2026 21:53:50 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3414712"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lmTC4j5iUSZPneLO8f3R3qvRZTL/0xLo="; posting-host="778ce4185f12901569e4016c80cf7695" Cancel-Lock: sha1:odjMBTkGVGnP6dnfEQriBGzcE8c= sha256:sBTKjKM0PLD9YMJy8X0fTLcomPXOBYlrPbzYg4EUYn0= sha1:ZdtQNnTKwPGaEo2ft4ilDhall6g= sha256:CDXjIXB0cqUHBkumdWl5nTdpArQQuJduiMUiNbMpCK8= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)