Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: technology discussion =?utf-8?Q?=E2=86=92?= does the world need a "new" C ?
Date: Sat, 13 Jul 2024 18:44:36 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <8634oc7nnf.fsf@linuxsc.com>
References: <877cdur1z9.fsf@bsb.me.uk> <871q42qy33.fsf@bsb.me.uk> <87ed82p28y.fsf@bsb.me.uk> <87r0c1nzjj.fsf@bsb.me.uk> <86ikxd8czu.fsf@linuxsc.com> <20240710213910.00000afd@yahoo.com> <865xtc87yo.fsf@linuxsc.com> <87msmnu5e3.fsf@nosuchdomain.example.com> <87frsfu0yp.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Sun, 14 Jul 2024 03:44:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5c27e5a18f871cdaf0e390dfc4b4abb1"; logging-data="4158481"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19m0qL3p2ooXO0XqrJnHhMQ8uCXEnMZe3Y="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:SGg+RFm0pM9KTntBCK9eKLIjhUI= sha1:6Z8uDR0DQBcY8FPe+JW+obzPOCI=
Xref: csiph.com comp.lang.c:387144
bart writes:
> On 12/07/2024 12:44, Janis Papanagnou wrote:
>
>> On 11.07.2024 22:37, bart wrote:
>>
>>> On 11/07/2024 21:29, Keith Thompson wrote:
>>>
>>>> bart writes:
>>>>
>>>>> This my first comment on the subject:
>>>>>
>>>>> "Arrays are passed by reference:
>>>>> ...
>>>>> Although ..."
>>>>
>>>> And that statement was incorrect, even with the "Although".
>>>
>>> So arrays are passed by value? Gotcha.
>>
>> Neither is true. - Tertium datur!
>>
>> "Array passing" is in "C" realized using a pointer passing
>> mechanism where the pointer is passed "by value".
>>
>> Neither an array is passed [by value] nor there's a "call
>> by reference" mechanism in "C".
>
> So how are the elements of the caller's array accessed?
That is irrelevant to the question because array elements
are not arguments to the function.