Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: lvalue assignment difference between C and C++
Date: Tue, 07 Feb 2023 07:50:37 -0800
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <86edr1cw4y.fsf@linuxsc.com>
References: <0mvDL.68810$b7Kc.34465@fx39.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="ff4ec4b9a3b640223dbadd3bd5686468"; logging-data="3993870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jVds7aIHPIK+b/eGH8kUBnj5FWpz7c9Y="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:ueIek+4beRjL/Du1TYBpBDuTo74= sha1:zsuPbcNRgelxeJ6gYm2vS7flC+4=
Xref: csiph.com comp.lang.c++:89015
Paavo Helde writes:
> 07.02.2023 08:44 Bonita Montero kirjutas:
>
>> Am 06.02.2023 um 08:11 schrieb Paavo Helde:
>>
>>> This would basically introduce a limited notion of 'reference' in
>>> the C language, which would make the language more complex to teach
>>> and learn. That's the opposite to the goals C currently has.
>>
>> References are easy to learn.
>
> Yes, in the same way one push-up is easy to do.
Great analogy. I tip my hat to you sir.
It's interesting to note that in his talk on cpp2, Herb Sutter
has abandoned references as a separate concept, because they
are too complicated. Instead what references are mostly used
for has been replaced by parameter passing modes.