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

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

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: =?UTF-8?Q?Re:_technology_discussion_=e2=86=92_does_the_world_need_a?=
 =?UTF-8?Q?_=22new=22_C_=3f?=
Date: Sat, 13 Jul 2024 12:35:34 +0200
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <v6tl9n$3i59e$1@dont-email.me>
References: <v66eci$2qeee$1@dont-email.me> <v6jiud$1dsjb$1@dont-email.me>
 <877cdur1z9.fsf@bsb.me.uk> <v6joi4$1epoj$1@dont-email.me>
 <871q42qy33.fsf@bsb.me.uk> <v6k6i0$1h4d3$1@dont-email.me>
 <87ed82p28y.fsf@bsb.me.uk> <v6m03l$1tf05$1@dont-email.me>
 <87r0c1nzjj.fsf@bsb.me.uk> <v6m716$1urj4$1@dont-email.me>
 <87ikxconq4.fsf@bsb.me.uk> <v6n8iu$24af0$1@dont-email.me>
 <20240711115418.00001cdf@yahoo.com> <v6oamt$2d8nn$1@dont-email.me>
 <v6oct4$2djgq$2@dont-email.me> <v6of96$2ekb0$1@dont-email.me>
 <v6ovfc$2hcpf$1@dont-email.me> <v6p4hf$2icph$1@dont-email.me>
 <v6qgpu$2t6p7$3@dont-email.me> <v6r33m$30grj$1@dont-email.me>
 <20240712154252.00005c2f@yahoo.com> <86o7717jj1.fsf@linuxsc.com>
 <v6ti10$3gru4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jul 2024 12:35:35 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7a53c9751894591e545e12eb0859c4c4";
	logging-data="3740974"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19MsrJXowAc/lIte0+A6HPG"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:4SlcGAaUq9mvMP1z+Cs9OSXJAIQ=
In-Reply-To: <v6ti10$3gru4$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
Bytes: 3925

On 13.07.2024 11:39, BGB wrote:
> On 7/13/2024 4:01 AM, Tim Rentsch wrote:
>> Michael S <already5chosen@yahoo.com> writes:
>>> On Fri, 12 Jul 2024 13:12:53 +0200
>>> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
>>>
>>>> But maybe he has looked up some things, since lately he's squirming
>>>> by introducing terms like "_true_ pass-by-reference" [emphasis by me]
>>>> obviously trying to bend the semantics of the established technical
>>>> "pass-by-reference" term to fit his argument.  (Introducing new terms
>>>> for existing mechanisms or bending semantics of existing terms with
>>>> well established meaning is certainly not helpful in any way.)
>>>>
>>>> [...]
>>>
>>> I don't share your optimistic belief that the term "pass by reference"
>>> is really established.  [...]
>>
>> The terms
>>
>>     call by name
>>     call by value
>>     call by reference
>>     call by value-result
>>
>> are all well-defined and firmly established, going back more than
>> 60 years.  I learned all of these in standard early course in
>> computer science sometime in the early 1970s.  Of course I can't
>> be sure about the source after all these years, but I expect
>> they were defined in the textbook we were using in the class.
>>
>> [...]
> 
> As I see it, they are not exactly the same:
> "call by reference", is from the POV of how arguments themselves are
> passed to functions during a function call;
> "pass by reference" has more to do with the data or object being
> conveyed (usually means that a pointer to the object is being passed,
> but generally used in cases where no explicit pointer exists).

Old and also contemporary sources speak about "call". But "pass"
might be more appropriately describing the mechanism as someone
mentioned before (and thus "pass" is probably less confusing).

I suggest to speak about "by reference" as mechanism and don't
focus too much on "call" or "pass".

(And of course to point to informal usages of "reference" as to
not mix it with the established "by reference" mechanism term.)

Janis

> [...]