Sujet : Re: Two questions on arrays with size defined by variables
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 10. Feb 2025, 19:14:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vodflm$1ar05$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 10.02.2025 07:49, Keith Thompson wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[ Simula / Cim stuff snipped ]
[...]
But a VLA object's lifetime begins, not when execution reaches the
opening "{", but when it reaches the object definition.
Yes, I assumed so [for "C")´].
My explanations were meant only for the Algol 60 and Simula rationale.
(But mind, that the whole thing of mentioning these other languages
was anyway only a side-track after someone mentioned Pascal and PL/I.
It was to understand what semantics are possible in principle. None
of these language have any relevance for how "C" handles VLAs.)
The solution was already formulated elsethread long ago. And all the
rest of this thread was the CLC-typical OT spin-offs. - So I'm fine
with the insights on the topic. And I'm (slightly amused) following
and participating in the rest of the discussions. :-)
Janis