Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper 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, 12 Jul 2024 07:34:17 -0400 Organization: A noiseless patient Spider Lines: 31 Message-ID: References: <87h6d2uox5.fsf@nosuchdomain.example.com> <20240707164747.258@kylheku.com> <877cdur1z9.fsf@bsb.me.uk> <871q42qy33.fsf@bsb.me.uk> <87ed82p28y.fsf@bsb.me.uk> <87r0c1nzjj.fsf@bsb.me.uk> <87ikxconq4.fsf@bsb.me.uk> <20240711115418.00001cdf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 12 Jul 2024 13:34:18 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4832b035291dc54233b2e6d08cbaa6a3"; logging-data="3154435"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jqJ3XPd+LsLyhlwHRTnPNr3xW/Y42vqc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:MVgB4w1eOR/8kqZ4mtJ/5crK50A= Content-Language: en-US In-Reply-To: Bytes: 3283 On 11/07/2024 19:25, bart wrote: > On 11/07/2024 16:58, David Brown wrote: .... >> You've mentioned very clearly that your understanding of C is a mess. >> C itself is quite simple here, > > Not it isn't. The fact that I can do this: > >     void F(vector a) {}          // typedef byte vector[100]; > > and get the type of 'a' as 'byte*', sizeof(a) as 8, sizeof(*a) as 1, but > sizeof(vector) as 100, suggests all sorts of shenanigans. No, just one shenanigan. It suggests that when a function parameter is declared as an array of 'type', that it is treated as a declaration of a pointer to that type. Every fact that you listed above follows from this rule which is very explicitly stated in the C standard and any C textbook, and which is simple enough that most C newbies figure it out fairly quickly. It has already been explained to you hundreds of times over the past decade or so - but has apparently never actually gotten into your brain >> and the rules are not hard to understand. > > Ha ha ha! Of course you would say that. Keep in mind that you've proven repeatedly that your ability to understand even the simplest features of C is quite negligible. The fact that you can't understand it proves almost nothing about how hard it is for most people to understand.