Deutsch English Français Italiano |
<v6oopl$2fja8$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!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: =?UTF-8?Q?Re=3A_technology_discussion_=E2=86=92_does_the_world_need?= =?UTF-8?B?IGEgIm5ldyIgQyA/?= Date: Thu, 11 Jul 2024 15:04:37 +0100 Organization: A noiseless patient Spider Lines: 61 Message-ID: <v6oopl$2fja8$2@dont-email.me> References: <v66eci$2qeee$1@dont-email.me> <v6f7vg$hgam$1@dont-email.me> <20240707164747.258@kylheku.com> <v6gl83$s72a$1@dont-email.me> <v6h8ao$ur1v$1@dont-email.me> <v6jhk3$1drd6$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> <86ikxd8czu.fsf@linuxsc.com> <v6mggd$20g3f$1@dont-email.me> <20240710213910.00000afd@yahoo.com> <v6mm02$21cpb$1@dont-email.me> <865xtc87yo.fsf@linuxsc.com> <v6ol14$2fdrj$1@dont-email.me> <861q4083gl.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 11 Jul 2024 16:04:37 +0200 (CEST) Injection-Info: dont-email.me; posting-host="92757c0b3eb137c08e71ba54311788f0"; logging-data="2608456"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eZ8oYGgrCuztemGKwT62Z" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Nddt06FeGgeDRxc1AVi8M0E+fiQ= In-Reply-To: <861q4083gl.fsf@linuxsc.com> Content-Language: en-GB Bytes: 4141 On 11/07/2024 14:26, Tim Rentsch wrote: > bart <bc@freeuk.com> writes: > >> On 11/07/2024 12:49, Tim Rentsch wrote: >> >>> bart <bc@freeuk.com> writes: >>> >>>> According to what people have said, C would STILL be a language that >>>> passed thing by value, and never by automatic reference. >>> >>> First, the scheme that you outline is either dumb or disingenuous >>> (or perhaps both). >>> >>> Second, the argument you're making is purely ad hominem: it >>> isn't about what is true but about what it is people will say, or >>> at least what you think they would say. >>> >>> Third, none of this changes the underlying reality. Whatever >>> people might say about your hypothetical scenario, or whatever it >>> is you think they would say, it doesn't alter the fact that in C >>> all function arguments are passed by value, and not by reference. >> >> People don't write software based on the the precise, pedantic details >> of what a language reference says, which are always to use the same >> carefully selected set of terms. >> >> They want to write programs that do useful tasks. >> >> If that task calls for a function that manipulates arrays as though >> they were passed by reference, then, guess what, they will use a C >> function that the standard says always passes things by value. >> >> For that purpose, in the mind of the user, it does the same job as 'by >> by reference'. That it does so by some other quirks (array decay, and >> the ability to index pointers as thought they were arrays), is by the >> by. >> >> I understand that in this newsgroup, most posters are only interested >> in what the Standard says and little else, and will pounce upon any >> turns of phrase, any nomenclature, that deviate even slightly from >> what it says in that document. >> >> I also understand that this is not comp.std.c >> >> Meanwhile, the internet abounds with quotes like this about C: >> >> "When we pass the address of an array while calling a function then >> this is called function call by reference." >> >> "Basically, in C, function parameters that are arrays are passed by >> reference, by default." >> >> Yes, I get that such lax informality would annoy the people here. > > You have proven once again that your goal is not to inform > but to annoy. Congratulations. Mission accomplished. And yours (plural as it's not just you) is also to annoy with pointless pedantry.