Re: "span"

Liste des GroupesRevenir à l c 
Sujet : Re: "span"
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.c
Date : 23. Mar 2024, 23:50:52
Autres entêtes
Organisation : None to speak of
Message-ID : <871q80zkg3.fsf@nosuchdomain.example.com>
References : 1 2 3 4
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Thiago Adams <thiago.adams@gmail.com> writes:
Em 3/22/2024 9:19 PM, Ben Bacarisse escreveu:
Thiago Adams <thiago.adams@gmail.com> writes:
[...]
void f(int n, int a[n])
Although you can't rely on this anymore since it's now an optional
part of the language.
>
I think it is back in c23.
But not vlas.
[...]

Correct.

From N1570 (the last public draft before C11):

    __STDC_NO_VLA__ The integer constant 1, intended to indicate that
        the implementation does not support variable length arrays or
        variably modified types.

From N3220 (the first public draft of C26, essentially equivalent to C23):

    __STDC_NO_VLA__ The integer constant 1, intended to indicate that
        the implementation does not support variable length arrays with
        automatic storage duration. Parameters declared with variable
        length array types are adjusted and then define objects of
        automatic storage duration with pointer types. Thus, support for
        such declarations is mandatory.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Date Sujet#  Auteur
22 Mar 24 * "span"13Stefan Ram
22 Mar 24 +* Re: "span"8Thiago Adams
23 Mar 24 i`* Re: "span"7Ben Bacarisse
23 Mar 24 i `* Re: "span"6Thiago Adams
23 Mar 24 i  `* Re: "span"5Keith Thompson
24 Mar 24 i   `* Re: "span"4Ben Bacarisse
24 Mar 24 i    `* Re: "span"3Keith Thompson
24 Mar 24 i     +- Re: "span"1Ben Bacarisse
25 Mar 24 i     `- Re: "span"1Lawrence D'Oliveiro
23 Mar 24 +* Re: "span"2Ben Bacarisse
23 Mar 24 i`- Re: "span"1Kaz Kylheku
23 Mar 24 +- Re: "span"1fir
23 Mar 24 `- Re: "span"1Blue-Maned_Hawk

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal