Sujet : Re: Top 10 most common hard skills listed on resumes...
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 12. Sep 2024, 01:20:23
Autres entêtes
Organisation : None to speak of
Message-ID : <874j6lzprs.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13)
Bart <
bc@freeuk.com> writes:
[...]
That is, if something is a legal LHS term, then its syntax, and its
type, are identical to that term appearing on the RHS.
>
(And by its type, I mean its base type. So given 'int a,b; a=b;', I'm
talking about 'int' not 'int*'.)
>
There can additionally be similarities within internal representations.
[...]
I don't know why you mention int* or what you mean by "base type".
Given
int a,b; a=b;
there is no explicit or implicit expression or value of type int*.
The LHS of the assignment is an lvalue of type int that designates
an object. Nothing in C suggests that the object's address is
computed as a value of type int*. This is why assignment to bit
fields and register-qualified objects don't need to be treated as
special cases.
Certainly the generated machine code might cause the address of `a` to
be computed, but that's an implementation detail.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */