🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1276

Re: C: a question about scope automatics in C

#1276
From: Ross Finlayson
Date: Mon, 02 Nov 2026 22:27
55 lines
3945 bytes
On 11/02/2026 01:53 PM, Michael S wrote:
> 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.
>

What's in mind is a sort of, "superset", of the language,
about a sort of, "least-ledge automatic temporary arrays",
basically making interpretations of the storage-class,
about declaring arrays as would be in the usual data-segment
storage-class, while realizing them in the stack-segment storage-class,
according to "convention & idiom & discipline" and "the __attribute__
extension-point__ & compiler-plugins", as is detailed further in
the other post on this thread where it was put through the wringer.


Basically, when dealing with, "scanning & parsing", or extracting
values from text-strings and formatting values into text strings,
is about the temporaries and the automatic temporaries or local
variables as they're called, is figuring at compile-time to count
up and disambiguate the dependencies and uses of those as temporaries,
while imposing a sort of bound about "PAGE_SIZE" which you know,
to have real clean un-cluttered to test like with fixed-length-arrays
the usual way to declare data in the data-segment, while when compiled
to be used as a module or library, or in the runtime, with the
re-entrant, to sort of be both _fast_ and _small_, and moreso,
what's a compile-time invariant the size.

So, since today, "C-llata".

Sort of rhymes with "c u later", or "chocolate latte".

Technical Details
Message-ID: <9VKdnTXwXLb-k3T3nZ2dnZfqn_SdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com> <20261102235348.000056e9@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 02 Nov 2026 22:27:47 +0000
Subject: Re: C: a question about scope automatics in C
Newsgroups: comp.lang.c
References: <oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com>
 <20261102235348.000056e9@yahoo.com>
From: Ross Finlayson <ross.a.finlayson@gmail.com>
Date: Mon, 2 Nov 2026 14:27:29 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <20261102235348.000056e9@yahoo.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <9VKdnTXwXLb-k3T3nZ2dnZfqn_SdnZ2d@giganews.com>
Lines: 55
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-XX2BrEydjUzVI9EDJKPBsNbjDBtLs3EbkmMQrPaVCW8eKr/ZvLWNYcjjGHb/aBrIug8YMqglOx2AxVN!Rc9LvHNaA5+ooxV7Tf/j7jeifkiQt4vpdQqjiqfTMw9hCVQOKWPE+2efdktc2a4S1Zxk7YKjyWg=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40