🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1277

Re: C: a question about scope automatics in C

#1277
From: bartc
Date: Mon, 02 Nov 2026 22:42
56 lines
3956 bytes
On 02/11/2026 22:27, Ross Finlayson wrote:
> 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".

Sort of rhymes with 'complete bollocks'.
Technical Details
Message-ID: <11cb3k5$39naq$1@dont-email.me>
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> <20261102235348.000056e9@yahoo.com> <9VKdnTXwXLb-k3T3nZ2dnZfqn_SdnZ2d@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: bartc <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: C: a question about scope automatics in C
Date: Mon, 2 Nov 2026 22:42:12 +0000
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <11cb3k5$39naq$1@dont-email.me>
References: <oOScndMmgZhYRXX3nZ2dnZfqnPGdnZ2d@giganews.com>
 <20261102235348.000056e9@yahoo.com>
 <9VKdnTXwXLb-k3T3nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 02 Nov 2026 22:42:14 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3464538"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+W/nknhP5/J9+cq8d3O9+o"; posting-host="da6f3a790f61ccd12624dfc2973ac675"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8x547qtmIvqjn3stSj17wb6mo1Y= sha256:9PYeMHx96gGH0DZXtar+bzyrWqzzwgf39+ibnKXfBgY=
	sha1:vmxQtiwBe6alW9QlDi5qdqWoqGo= sha256:jXpABNYHj/ZCAhofvpuWNMXKE4Jn4UR9U2egNw/cQQo=
In-Reply-To: <9VKdnTXwXLb-k3T3nZ2dnZfqn_SdnZ2d@giganews.com>
Content-Language: en-GB