🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1315

Re: C: a question about scope automatics in C

#1315
From: Kaz Kylheku
Date: Tue, 03 Nov 2026 22:59
13 lines
1613 bytes
On 2026-11-02, Ross Finlayson <ross.a.finlayson@gmail.com> wrote:
> If not, are there common compiler extensions to so indicate
> when a variable goes out of scope and make effects on it?

Yes, GCC has extensions for it. There was talk about a "defer"
mechanism for inclusion into ISO C.

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2895.htm

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
Technical Details
Message-ID: <20261103102625.278@kylheku.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-mail
References: <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: Kaz Kylheku <046-301-5902@kylheku.com>
Newsgroups: comp.lang.c
Subject: Re: C: a question about scope automatics in C
Date: Tue, 3 Nov 2026 22:59:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20261103102625.278@kylheku.com>
References: <oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com>
Injection-Date: Tue, 03 Nov 2026 22:59:51 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="246409"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18I+9pX5FubhLNFX0fS0fQI3sNdDK+kKj0="; posting-host="ea46c3c53b7b33655f62f2e1d58addc9"
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:tuBRKhIg8snBiWgrt+R62Pe8Ypg= sha256:cp9ay9ZNJd7bAmiksQzeuvfamZqYUOWUy2oh6sPEj4A=
	sha1:Kg5sm/D0Sak73iSHMHYagRdyboo= sha256:QrlnMCYVnCzVXulSxgz9VQGrN2isskF+lf0ZhcEVXl8=