Path: ...!weretis.net!feeder9.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Top 10 most common hard skills listed on resumes... Date: Mon, 09 Sep 2024 09:47:18 -0700 Organization: A noiseless patient Spider Lines: 54 Message-ID: <865xr4kc4p.fsf@linuxsc.com> References: <87mskwy9t1.fsf@bsb.me.uk> <875xrkxlgo.fsf@bsb.me.uk> <87o75bwlp8.fsf@bsb.me.uk> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 09 Sep 2024 18:47:21 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2550a8cb929efdfde26bde1f2c6c70c6"; logging-data="2617226"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SW+xFveQM1Ii7cuAY/6e8BAjN8V0EFFA=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:+4Z+Lp2TIjpyBO89Br4GM96jjPg= sha1:C59mRLazkbC/Rm3n2K8gFUtm00s= Bytes: 3666 Ben Bacarisse writes: > Bart 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. >> A is a simple variable; > > C does not define the term "simple variable" so presumably you > define it to be any named object that /can/ appear on the LHS > of a simple assignment -- a sort of "no true Scots-variable". I think what you're talking about here is an identifier that looks like it could be assigned to but can't be due to some semantic information attached to the identifier. If that is it then I'm okay with the "simple variable" phrase, with the understanding that the phrase is being used informally rather than completely precisely. >> X represents a term of any complexity, and Y is any >> expression. > > I can think of at least one expression form for X that contradicts > this claim. I haven't figured this one out yet. I'm assuming you don't mean just a lack of parentheses around X that is causing the problem. I guess I'm also assuming you're talking only about syntax, and semantic information doesn't enter into it. > It would be great if C had simple rules, but it doesn't. You could have > started by saying something about the most comment forms of assignment > being those you list, and that X can be almost any term, but the risk of > making absolute claims is that people (like me) will look into them. I have two problems with understanding some of Bart's comments. One, he often isn't careful to express himself accurately or precisely. Two, his vocabulary can be unpredictably idiosyncratic. I think the combination of these two aspects make it harder for me to understand him than either aspect would just by itself.