Sujet : Re: Regarding assignment to struct
De : nbowler (at) *nospam* draconx.ca (Nick Bowler)
Groupes : comp.lang.cDate : 07. May 2025, 20:09:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvgb5j$3ilpe$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
On Tue, 06 May 2025 13:21:38 -0700, Keith Thompson wrote:
Nick Bowler <nbowler@draconx.ca> writes:
The rule about conversions from arrays to pointers is different in C99
(n1124 6.3.2.1, third paragraph) compared to C89. In particular,
"an lvalue that has type ``array of type'' ..." was changed to
"an expression that has type ``array of type'' ...".
[...]
The change from "lvalue" to "expression" was made in C99. I wonder why
that was done.
It's not mentioned in the rationale, so we can only guess. But it is
called out in the list of major changes in the C99 foreword.
BTW, you have a copy of ANSI C89? Hard or soft copy? Do you know if
it's still available in some form?
Hint: look for FIPS 160 on the NIST website. This is the same standard
as ANSI X3.159-1989 Programming Language - C.