Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse 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: <871q27weeh.fsf@bsb.me.uk> <20240829083200.195@kylheku.com> <87v7zjuyd8.fsf@bsb.me.uk> <20240829084851.962@kylheku.com> <87mskvuxe9.fsf@bsb.me.uk> <20240908115827.00007521@yahoo.com> <87zfoikve1.fsf@bsb.me.uk> <87zfofk32t.fsf@bsb.me.uk> <87bk0vjbvz.fsf@bsb.me.uk> 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 writes: > On 11/09/2024 01:02, Ben Bacarisse wrote: >> Bart 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.