Deutsch English Français Italiano |
<v9n6uj$1cvvg$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: =?UTF-8?Q?Re=3a_technology_discussion_=e2=86=92_does_the_world_need?= =?UTF-8?B?IGEgIm5ldyIgQyA/?= Date: Fri, 16 Aug 2024 11:42:43 +0200 Organization: A noiseless patient Spider Lines: 21 Message-ID: <v9n6uj$1cvvg$2@dont-email.me> References: <v66eci$2qeee$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> <v78af7$1qkuf$1@dont-email.me> <20240717163457.000067bb@yahoo.com> <v78piu$1su4u$1@dont-email.me> <86a5hep45h.fsf@linuxsc.com> <v9ktep$v5sk$1@dont-email.me> <87y14xsvnh.fsf@bsb.me.uk> <v9l95b$10ogv$1@dont-email.me> <87sev5s51s.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 16 Aug 2024 11:42:43 +0200 (CEST) Injection-Info: dont-email.me; posting-host="34f36c6f644c9c16e99a9067698f3758"; logging-data="1474544"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Nflv3f8zbv21PjpLk/zRRs4XmL9bHNls=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:R+U6FlCtJCgMcIYMc+3qAiX35Rs= Content-Language: en-GB In-Reply-To: <87sev5s51s.fsf@bsb.me.uk> Bytes: 2641 On 16/08/2024 02:08, Ben Bacarisse wrote: > Bart <bc@freeuk.com> writes: > >> >> In general there is no reason, in a language with true call-by-reference, >> why any parameter type T (which has the form U*, a pointer to anything), >> cannot be passed by reference. It doesn't matter whether U is an array type >> or not. > > I can't unravel this. Take, as a concrete example, C++. You can't pass > a pointer to function that takes an array passed by reference. You can, > of course, pass a pointer by reference, but that is neither here nor > there. > In C++, you can't pass arrays as parameters at all - the language inherited C's handling of arrays. You can, of course, pass objects of std::array<> type by value or by reference, just like any other class types.