Sujet : Re: technology discussion → does the world need a "new" C ?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 12. Jul 2024, 12:51:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6r5cs$30sjm$1@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
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 12.07.2024 13:03, bart wrote:
KT has chosen not to answer, and now you are evading it too. I'm asking
why this:
void F(int* B) {}
is 'not C' according to KT.
To be clear, I was proposing that:
void F(int B[20])
is an error, and requiring people to write:
void F(int* B) {}
instead.
Given that the first form is maybe confusing some folks (especially
you at least) I think that would have been not a bad idea. (But
we'd have to ponder more thoroughly about that [theoretical] idea
to recognize any undesired implications.)
But "C" is what it is. Changing that now would certainly break code.
And complaining about it is useless since you cannot change history.
Janis
[...]