Sujet : Re: Top 10 most common hard skills listed on resumes...
De : bc (at) *nospam* freeuk.com (Bart)
Groupes : comp.lang.cDate : 09. Sep 2024, 18:27:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbnb6t$2fqep$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
On 09/09/2024 17:47, Tim Rentsch wrote:
Ben Bacarisse <ben@bsb.me.uk> writes:
Bart <bc@freeuk.com> writes:
>
In language like C, the LHS of an assignment is one of four categories:
>
A = Y; // name
*X = Y; // pointer
X[i] = Y; // index
X.m = Y; // member select
>
I can think of three others. There may be more.
Yes, very good. I count four or five, depending on what
differences count as different.
Well, I implement only three of those (ie. of my four) in my code generator. (X[i] gets reduced to *X before this point.)
If there are any other categories, then they've never been encountered in any of the C projects I've tested.
(My language has nearly 10 categories, including one where the dual results of a 'divrem' op is assign to two LHS values. Are the extra ones in C anything like that, eg. to do with 'complex' assignment?)