Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou 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 11:46:34 +0200 Organization: A noiseless patient Spider Lines: 41 Message-ID: References: <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> <87cynirl7d.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 13 Jul 2024 11:46:36 +0200 (CEST) Injection-Info: dont-email.me; posting-host="14a5f16314952812b50a35483011f6fa"; logging-data="3722381"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kwcW0Sai5brW+FgdE3+Kp" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:O4dwnLTQfRjKpXx/et7zaL9RvrA= X-Enigmail-Draft-Status: N1110 In-Reply-To: <87cynirl7d.fsf@nosuchdomain.example.com> Bytes: 3277 On 13.07.2024 06:04, Keith Thompson wrote: > Janis Papanagnou writes: >> On 12.07.2024 15:59, bart wrote: > [...] >>> So how are the elements of the caller's array accessed? >>> >>> No copies have been supplied to the caller. So access is by ... ? >> >> ...by an implicit pointer value dereferentiation and a global >> access to the pointed to storage area. > > A small quibble: I suggest "indirect" would be clearer than "global". I used the term "indirection" before a an abstract description of the common superset of the function that "references" and "pointers" provide. But, yes. Global is not a good word. (It itches me as well.) Here I wanted to include (in a subtle way) another aspect (that had already been mentioned before by others, granted); that the change through indirection is not bound to some sort of "local" parameter object (an array passed as parameter by value), but as pointer may point just to (and manipulate) any "global" data. > > For example, a function can define a local array object and use > its name as an argument in a call to another function. > > [...] > >> As an end point to the discussion (just for some recreational >> reading) I suggest "The Development of the C Language" by D. >> Ritchie. > > Available at . Thanks for the link. (I had only a local copy of it.) Janis