| Deutsch English Français Italiano |
|
<87ed6g161n.fsf@bsb.me.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse <ben@bsb.me.uk> 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: <afdfe7c37c6ad739fd82c7ec0587b82e0963fce2@i2pn2.org> <va2i90$3f4dg$1@dont-email.me> <pan$8a32c$1fb86219$8ea0c6ae$7c2d1765@invalid.invalid> <va4id0$3rc3n$1@dont-email.me> <pan$2be2c$5ea44d54$282eec3$b0bcf030@invalid.invalid> <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 <ben@bsb.me.uk> 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.