Sujet : Re: "span"
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 23. Mar 2024, 22: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.comWorking, but not speaking, for Medtronicvoid Void(void) { Void(); } /* The recursive call of the void */