Re: technology discussion → does the world need a "new" C ?

Liste des GroupesRevenir à l c 
Sujet : Re: technology discussion → does the world need a "new" C ?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c
Date : 12. Jul 2024, 07:00:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6qgpu$2t6p7$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
User-Agent : Mozilla Thunderbird
On 11/07/2024 19:25, bart wrote:
On 11/07/2024 16:58, David Brown wrote:
On 11/07/2024 13:22, bart wrote:
 
If the original array has type T[N], then the T is passed, but the N is lost. The [] is also lost:; it turns into *. But in C, that doesn't matter too much; it can still index that object!
>
 
(Here I'm talking about info attached to the parameter name; the type itself may still have that N. Have I mentioned that C is mess?)
>
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.
 
and the rules are not hard to understand.
 Ha ha ha! Of course you would say that. 
Well, yes, I /did/ say that.
The rules for C are not the way I would have preferred, but they are straightforward to learn and consistent.  All you have to do is listen to what people tell you, read reliable information (such as the standards), and stop insisting that your confusing misunderstandings are correct.
I can understand when someone new to C gets mixed up about how arrays work.  I don't understand how someone can remain so stubbornly confused when they have been told how C /actually/ works.

Date Sujet#  Auteur
5 Jul 24 * Re: technology discussion → does the world need a "new" C ?305BGB
5 Jul 24 +* Re: technology discussion → does the world need a "new" C ?2Lawrence D'Oliveiro
5 Jul 24 i`- Re: technology discussion → does the world need a "new" C ?1yeti
5 Jul 24 +* Re: technology discussion → does the world need a "new" C ?275Keith Thompson
5 Jul 24 i+- Re: technology discussion → does the world need a "new" C ?1Lawrence D'Oliveiro
15 Jul 25 i`- 
5 Jul 24 +* Re: technology discussion → does the world need a "new" C ?26bart
5 Jul 24 i+- Re: technology discussion → does the world need a "new" C ?1BGB
6 Jul 24 i`* Re: technology discussion → does the world need a "new" C ?24Lawrence D'Oliveiro
6 Jul 24 i +* Re: technology discussion → does the world need a "new" C ?17Keith Thompson
6 Jul 24 i i+- Re: technology discussion → does the world need a "new" C ?1Janis Papanagnou
6 Jul 24 i i`* Re: technology discussion → does the world need a "new" C ?15Lawrence D'Oliveiro
6 Jul 24 i i +- Re: technology discussion → does the world need a "new" C ?1Ben Bacarisse
6 Jul 24 i i +- Re: technology discussion → does the world need a "new" C ?1Keith Thompson
7 Jul 24 i i +* Re: technology discussion → does the world need a "new" C ?10James Kuyper
10 Jul 24 i i i`* Re: technology discussion → does the world need a "new" C ?9Lawrence D'Oliveiro
10 Jul 24 i i i `* Re: technology discussion → does the world need a "new" C ?8James Kuyper
11 Jul 24 i i i  `* Re: technology discussion → does the world need a "new" C ?7Lawrence D'Oliveiro
11 Jul 24 i i i   +* Re: technology discussion → does the world need a "new" C ?2David Brown
11 Jul 24 i i i   i`- Re: technology discussion → does the world need a "new" C ?1Malcolm McLean
11 Jul 24 i i i   +* Re: technology discussion → does the world need a "new" C ?3bart
11 Jul 24 i i i   i`* Re: technology discussion → does the world need a "new" C ?2Chris M. Thomasson
12 Jul 24 i i i   i `- Re: technology discussion → does the world need a "new" C ?1Chris M. Thomasson
11 Jul 24 i i i   `- Re: technology discussion → does the world need a "new" C ?1James Kuyper
7 Jul 24 i i +- Re: technology discussion → does the world need a "new" C ?1Tim Rentsch
25 Aug 24 i i `- Re: technology discussion ? does the world need a "new" C ?1dave thompson 2
6 Jul 24 i +- Re: technology discussion → does the world need a "new" C ?1Janis Papanagnou
6 Jul 24 i +- Re: technology discussion → does the world need a "new" C ?1James Kuyper
6 Jul 24 i `* Re: technology discussion → does the world need a "new" C ?4bart
7 Jul 24 i  `* Re: technology discussion → does the world need a "new" C ?3Keith Thompson
7 Jul 24 i   `* Re: technology discussion → does the world need a "new" C ?2bart
7 Jul 24 i    `- Re: technology discussion → does the world need a "new" C ?1Keith Thompson
5 Jul 24 `- Re: technology discussion → does the world need a "new" C ?1lexi hale

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal