Sujet : Re: "A diagram of C23 basic types"
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.lang.cDate : 10. Apr 2025, 11:07:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vt859a$2p7vb$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
On Thu, 10 Apr 2025 09:53:40 +0200
David Brown <
david.brown@hesbynett.no> wibbled:
On 09/04/2025 21:11, bart wrote:
The sets of parameter names are all different (and that's in the same
file!); which is the official set?
>
C has had flexibility here for all sorts of reasons. But if named
parameters were to be added to the language without significant extra
syntax, then this particular issue could be solved in at least two very
simple ways. Either say that named parameter syntax can only be used if
Anyone who really wants named parameters at function calling can already do
this in C99:
struct st
{
int a;
int b;
int c;
};
void func(struct st s)
{
}
int main()
{
func((struct st){ .a = 1, .b = 2, .c = 3 });
return 0;
}