| Deutsch English Français Italiano |
|
<86ikxd8czu.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> Newsgroups: comp.lang.c Subject: Re: technology discussion =?utf-8?Q?=E2=86=92?= does the world need a "new" C ? Date: Wed, 10 Jul 2024 08:48:05 -0700 Organization: A noiseless patient Spider Lines: 20 Message-ID: <86ikxd8czu.fsf@linuxsc.com> References: <v66eci$2qeee$1@dont-email.me> <v6ard1$3ngh6$4@dont-email.me> <v6b0jv$3nnt6$1@dont-email.me> <87h6d2uox5.fsf@nosuchdomain.example.com> <v6d779$6rk5$2@dont-email.me> <v6e76u$c0i9$1@dont-email.me> <v6esqm$fian$2@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Wed, 10 Jul 2024 17:48:05 +0200 (CEST) Injection-Info: dont-email.me; posting-host="47644514c0c8b52a7b182738a8527a90"; logging-data="2055199"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Uuag7BeB5YBxbQcMPaw2IiDzDGQn7ADA=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:8cyp5FRXobFiSLopfVLMmfPFvWU= sha1:jDwoo5bKHhc4FGD8T3ioBJ48we0= Bytes: 2607 bart <bc@freeuk.com> writes: > I earlier asked this: > > "So if arrays aren't passed by value in C, and they aren't passed > by reference, then how the hell ARE they passed?!" They aren't. C allows lots of things to be passed as an argument to a function: several varieties of numeric values, structs, unions, and pointers, including both pointers to object types and pointers to function types. C does not have a way for a function to take an argument that is either an array or a function. There is a way to take pointers to those things, but not the things themselves. Arrays and functions are second-class values in C. For some reason you insist on confusing your view of how the world is with how the world actually is. No matter how many times you ask the question, you're going to get the same answer, because the people who are answering are saying how the world actually is, and not how you think it is.