Deutsch English Français Italiano |
<vslis6$8mfb$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Thu, 3 Apr 2025 11:03:02 +0200 Organization: A noiseless patient Spider Lines: 20 Message-ID: <vslis6$8mfb$2@dont-email.me> References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me> <vsjg6t$20pdb$1@dont-email.me> <vsjjd1$23ukt$1@dont-email.me> <vskb2m$2scqh$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 03 Apr 2025 11:03:02 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d65639e364606db0746acbec737df138"; logging-data="285163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sWCHJnFFAW1bKO4Z4EdpIV1EOVp/pw7A=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:adFfOFPE2T+kNhkiKqk9maI/IYE= Content-Language: en-GB In-Reply-To: <vskb2m$2scqh$1@dont-email.me> On 02/04/2025 23:43, Janis Papanagnou wrote: > On 02.04.2025 16:59, David Brown wrote: >> [...] >> >> From the next version beyond C23, so far there is : >> >> 1. Declarations in "if" and "switch" statements, like those in "for" >> loops, helps keep local variable scopes small and neat. > > Oh, I thought that would already be supported in some existing "C" > version for the 'if'; I probably confused that with C++. > C++17 has it. I guess the C committee waited until C++17 had been common enough that they could see if it was useful in real code, and if it lead to any unexpected problems in code or compilers before copying it for C.