Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c Subject: Re: on allowing "int a" definition everywhere Date: Fri, 23 Aug 2024 00:39:16 +0100 Organization: A noiseless patient Spider Lines: 14 Message-ID: <87ed6g161n.fsf@bsb.me.uk> References: <87h6bchpzf.fsf@nosuchdomain.example.com> <87plq026li.fsf@bsb.me.uk> <20240822111551.183@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 23 Aug 2024 01:39:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="e6d8a0840bd72aa20964993eaebf981b"; logging-data="656421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OjM+OZqHpmbhzT8RuUiW0LvQq0Z8y18Q=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:jKzFsTXsyQD/gXMK1WK7G9aKjLA= sha1:i9jeQQwThwh/wnxV5PgqEEPFJ6M= X-BSB-Auth: 1.1b97b2071e95c20aed16.20240823003916BST.87ed6g161n.fsf@bsb.me.uk Bytes: 1765 Kaz Kylheku <643-408-1753@kylheku.com> writes: > On 2024-08-22, Ben Bacarisse wrote: >> What's the significance of the declared name being in scope in the else >> clause here? > > else is a part of the if statement. Everything under the statement > should have visibility to its lexical variable(s). Yes, but the key point was "here". It's obviously important in general, but the claim was that it mattered for the example given. -- Ben.