Sujet : Re: on allowing "int a" definition everywhere
De : ben (at) *nospam* bsb.me.uk (Ben Bacarisse)
Groupes : comp.lang.cDate : 23. Aug 2024, 00:39:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87ed6g161n.fsf@bsb.me.uk>
References : 1 2 3 4 5 6 7 8
User-Agent : Gnus/5.13 (Gnus v5.13)
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.