Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper Newsgroups: comp.lang.c Subject: =?UTF-8?Q?Re=3A_technology_discussion_=E2=86=92_does_the_world_need?= =?UTF-8?B?IGEgIm5ldyIgQyA/?= Date: Sat, 6 Jul 2024 21:18:18 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <871q48w98e.fsf@nosuchdomain.example.com> <87wmlzvfqp.fsf@nosuchdomain.example.com> <87cynquokr.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 07 Jul 2024 03:18:18 +0200 (CEST) Injection-Info: dont-email.me; posting-host="8e847e201f1ac6ac487c614b591508d8"; logging-data="49963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lTHnsnfkpiqxPS3wU39burxTN9K3rqt0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:kwiAJgbO7NkmPRC+uGaVZev8lVs= Content-Language: en-US In-Reply-To: <87cynquokr.fsf@nosuchdomain.example.com> Bytes: 2103 On 7/6/24 18:45, Keith Thompson wrote: > James Kuyper writes: > [...] >> The key point is that an expression of array type does not always get >> converted into a pointer to the first element of that array. The clause >> above starts out with four exceptions, and an array behaves quite >> differently from a pointer when any of those exceptions apply. > > There are three exceptions, not four. > > The N1570 draft of C11 incorrectly says: I was quoting from n3096.pdf, dated April 1, 2023. It says: "Except when it" 1. "is the operand of the sizeof operator," 2. "or typeof operators," 3. "or the unary & operator," 4. "or is a string literal used to initialize an array, ..." What am I miscounting?