| Deutsch English Français Italiano |
|
<87tteliwgh.fsf@bsb.me.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Ben Bacarisse <ben@bsb.me.uk>
Newsgroups: comp.lang.c
Subject: Re: Top 10 most common hard skills listed on resumes...
Date: Thu, 12 Sep 2024 00:47:58 +0100
Organization: A noiseless patient Spider
Lines: 58
Message-ID: <87tteliwgh.fsf@bsb.me.uk>
References: <vab101$3er$1@reader1.panix.com> <871q27weeh.fsf@bsb.me.uk>
<20240829083200.195@kylheku.com> <87v7zjuyd8.fsf@bsb.me.uk>
<20240829084851.962@kylheku.com> <87mskvuxe9.fsf@bsb.me.uk>
<vaq9tu$1te8$1@dont-email.me> <vbci8r$1c9e8$1@paganini.bofh.team>
<vbcs65$eabn$1@dont-email.me> <vbekut$1kd24$1@paganini.bofh.team>
<vbepcb$q6p2$1@dont-email.me> <vbj6ii$1q6mh$1@dont-email.me>
<20240908115827.00007521@yahoo.com> <vbju6l$1sqao$2@dont-email.me>
<87zfoikve1.fsf@bsb.me.uk> <vbkka9$201ms$2@dont-email.me>
<vbnv43$2igdn$1@dont-email.me> <87zfofk32t.fsf@bsb.me.uk>
<vbptr4$31s4d$2@dont-email.me> <87bk0vjbvz.fsf@bsb.me.uk>
<vbrp96$3gqes$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 12 Sep 2024 01:47:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9b7858c5e222e20447475885d34c68cc";
logging-data="4052406"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fCpNHZQQU4V+QXQwBzfY4Eqr4R7xBrXc="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:Nf7wu/9xUp0JQC4efu9hEwW97U4=
sha1:VhCSrHZHJGg9fUfpPEV+/4eTuqg=
X-BSB-Auth: 1.50b40cf20f77e92db0bb.20240912004758BST.87tteliwgh.fsf@bsb.me.uk
Bytes: 3334
Bart <bc@freeuk.com> writes:
> On 11/09/2024 01:02, Ben Bacarisse wrote:
>> Bart <bc@freeuk.com> writes:
>
>>> Sorry, did your remark above suggest I don't know what an lvalue is?
>> That seemed like the obvious explanation for the incorrect information
>> you gave. Did you post it /knowing/ what other kinds of things are
>> lvalues in C just to confuse people?
>
> Which incorrect explanation was that?
>
> I merely said that LHSs of assigments fall into these categories:
>
> A = Y; // name
> *X = Y; // pointer
> X[i] = Y; // index
> X.m = Y; // member select
Yes, that incorrect explanation.
> Clearly I mean VALID LHSs, otherwise they wouldn't be LHSs of assignments!
>
> I've since learnt about a couple of other possible categories; one is with
> compound literals like '(int){42} = 0'.
Along with (a) _Generic expressions (where the selected arm is an
lvalue) and (b) expressions of the form X->m.
> (I don't count (A), ((A)) etc as a
> separate category; come on!)
Don't give me "come on!". I was counting forms in the same way that you
were when I said I could think of three more. I was not counting
parentheses.
> The other is 'X.m' but when .m is a bitfield;
What makes X.m = Y, where m is a bitfield, an extra category? It fits
the X.m = Y pattern perfectly well.
> although this has the same
> same syntax as above, internally it's somewhat different.
Your categories were syntactic. You were describing forms.
> (My C compiler
> treats bitfields as ordinary members.)
>
> I acknowledge that allowing 'F().m = Y' is wrong;
Thank you.
> I might get around to
> fixing it one day.
--
Ben.