Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: Two questions on arrays with size defined by variables Date: Mon, 10 Feb 2025 19:14:13 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: <87bjvar83h.fsf@nosuchdomain.example.com> <87cyfqpa55.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 10 Feb 2025 19:14:15 +0100 (CET) Injection-Info: dont-email.me; posting-host="0b8074d8a86be4d46d9273c2d14c6e68"; logging-data="1403909"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18stOh6+fzVgHkwTOxyzw+8" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:vMPWYwWjhJ47u2cvmyJ9RQ7wZAY= In-Reply-To: <87cyfqpa55.fsf@nosuchdomain.example.com> X-Enigmail-Draft-Status: N1110 Bytes: 2322 On 10.02.2025 07:49, Keith Thompson wrote: > Janis Papanagnou 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