Sujet : Re: "span"
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 24. Mar 2024, 03:15:59
Autres entêtes
Organisation : None to speak of
Message-ID : <87wmpsxtls.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Ben Bacarisse <
ben.usenet@bsb.me.uk> writes:
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
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.
>
Has C23 been ratified yet? The fact that there's a draft of C26
suggests it has been, but the news passed me by.
I don't believe it has.
According to <
https://www.open-std.org/jtc1/sc22/wg14/>, "WG14 has
finished revising the C standard, under the name C23".
N3219, published 2024-02-22, is the Draft International Standard.
It's password-protected.
N3220, published the same day, is the C2y draft. My understanding is
that its content is very nearly indentical to N3219. I don't know what
changes are possible or likely between N3219 and the upcoming C23
standard.
https://www.open-std.org/jtc1/sc22/wg14/www/wg14_document_log-- 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 */