Deutsch   English   Français   Italiano  
<vaps06$3vg8l$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: Top 10 most common hard skills listed on resumes...
Date: Thu, 29 Aug 2024 14:10:29 +0100
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <vaps06$3vg8l$1@dont-email.me>
References: <vab101$3er$1@reader1.panix.com>
 <vad7ns$1g27b$1@raubtier-asyl.eternal-september.org>
 <vad8lr$1fv5u$1@dont-email.me> <vaf7f0$k51$2@reader1.panix.com>
 <vafgb2$1to4v$2@dont-email.me>
 <92ab79736a70ea1563691d22a9b396a20629d8cf@i2pn2.org>
 <vafim7$1ubg8$1@dont-email.me> <vah4hr$2b9i8$5@dont-email.me>
 <vahngt$2dtm9$1@dont-email.me> <87r0abzcsj.fsf@bsb.me.uk>
 <vai1ec$2fns2$1@dont-email.me> <874j75zftu.fsf@bsb.me.uk>
 <valrj7$367a8$2@dont-email.me> <87mskwy9t1.fsf@bsb.me.uk>
 <vanq4h$3iieb$1@dont-email.me> <875xrkxlgo.fsf@bsb.me.uk>
 <vapitn$3u1ub$1@dont-email.me> <87o75bwlp8.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 29 Aug 2024 15:10:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f25609d88f29f3eda9765667c5ab1831";
	logging-data="4178197"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+0OyM+3ZIzXx4AUTVYrjuW"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iuNvTHR7Wji5fNQPebt5WwG3lH0=
Content-Language: en-GB
In-Reply-To: <87o75bwlp8.fsf@bsb.me.uk>
Bytes: 3367

On 29/08/2024 13:35, Ben Bacarisse wrote:
> Bart <bc@freeuk.com> writes:

>> I explained that. LHS and RHS can be identical terms for assignment in
>> pretty much every aspect, but there are extra constraints on the LHS.
> 
> So you use "exactly the same" to mean "exactly the same except for the
> differences".

No, I do mean exactly the same, both in terms of syntax and (in my 
implementations, which are likely typical) internal representation of 
those terms.

There are no differences other than where the type system says your code 
is invalid. So are no differences when considering only valid programs.

This program in my language:

      42 := 42

is valid syntax. It passes the next step too. It is caught later on. 
Other languages/implementations may object earlier.

Some may make it invalid syntax via a stricter grammar, but if I try '42 
= 42' in C, then I don't get a syntax error; I get a message about 42 
not being an lvalue. (From what I can make of C's grammar, a constant is 
allowed on the left of an assignment operator.)


>> I don't know why you're always so contradictory. Is it a game trying to
>> catch me out on some pendanty? It seems to be popular here.
> 
> I wanted to explain how BLISS gets rid of the lvalue/rvalue distinction
> because you seemed to have misunderstood it.

It seems to make a dog's dinner of it. I think even in Lisp you just 
write (setf a a) or something like that. And here you are assigning a's 
value to itself.

(I never came across BLISS even though I used DEC equipment. I did 
implement a lower level language for PDP10 though, more of a HLA. But 
even there, you would write A => A to asssign A's value to itself. I 
can't remember how you obtained a reference to A.)