Sujet : Re: technology discussion → does the world need a "new" C ?
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 07. Jul 2024, 02:18:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6cqcq$1gpb$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 7/6/24 18:45, Keith Thompson wrote:
James Kuyper <jameskuyper@alumni.caltech.edu> 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?