Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Thiago Adams
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 08:51:13 -0300
Organization: A noiseless patient Spider
Lines: 40
Message-ID:
References:
<20240707164747.258@kylheku.com>
<877cdur1z9.fsf@bsb.me.uk>
<871q42qy33.fsf@bsb.me.uk>
<87ed82p28y.fsf@bsb.me.uk>
<87r0c1nzjj.fsf@bsb.me.uk>
<86ikxd8czu.fsf@linuxsc.com>
<20240710213910.00000afd@yahoo.com>
<865xtc87yo.fsf@linuxsc.com>
<87msmnu5e3.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 12 Jul 2024 13:51:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="925cc8ffc86b21a072102566fd54d66a";
logging-data="3172524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vg1cYuFIXDI+xszg2A79s/3fc6nWHuAo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:z7si6pC/Pb5Wm6G0TVSnUAUgOGU=
In-Reply-To:
Content-Language: en-US
Bytes: 2677
On 11/07/2024 16:56, bart wrote:
> The language could have helped a little by making this invalid:
>
> int A[20];
>
> void F(int B[20]) {}
The declaration does not correspond of the real type because there is no
type to represent that.
In cake, I am thinking in create the type "pointer to the first element
of N".
Then, if this was created in the past the syntax could be:
int A[20];
void F(int *.[20] B)
{
}
But nowadays we don't need to change the current syntax for parameters,
just leave as it is.
The syntax "pointer to the first element of N" can be used in other
situations.
In cake, I have a warning if you use B as pointer, for instance:
int A[20];
void F(int B[20]) {
B = 0; //warning
}
If the user wants to do that he can change the declaration to int *B.
But now the size is lost. The type "pointer to the first element of N"
fixes that.