Sujet : Re: technology discussion → does the world need a "new" C ?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 12. Jul 2024, 16:58:55
Autres entêtes
Organisation : None to speak of
Message-ID : <87wmlqsitc.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13)
bart <
bc@freeuk.com> writes:
[...]
If you had to describe to someone how a function accesses array data
in its caller, what would you say?
The same thing I've written to you many times over the last several
years in this newsgroup.
It's clearly not by value. It's apparently not by reference. You can't
get away with saying they are not passed, as clearly functions *can*
access array data via parameters.
Yes, function can access array data by means other than passing arrays
as parameters.
Or would you merely refer to the relevant section in the language reference?
That, and to section 6 of the comp.lang.c FAQ, which is an excellent
description of C's treatment of arrays and pointers. You've repeatedly
declined to say whether you've read it. I encourage you to do so.
Just curious.
Sure you are.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */