Deutsch English Français Italiano |
<87wmpsh0zy.fsf@bsb.me.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse <ben.usenet@bsb.me.uk> Newsgroups: comp.lang.c Subject: Re: "span" Date: Sun, 24 Mar 2024 01:28:17 +0000 Organization: A noiseless patient Spider Lines: 36 Message-ID: <87wmpsh0zy.fsf@bsb.me.uk> References: <span-20240322122631@ram.dialup.fu-berlin.de> <utjrbm$2st57$1@dont-email.me> <878r29iyvd.fsf@bsb.me.uk> <88f3b4c1-6dad-4fec-8941-fc4e4e755cd1@gmail.com> <871q80zkg3.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="ac39b37d4face64cd212e73c06f03235"; logging-data="4174104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Tpo31CNOrKWQA7Fxl8s23c4CINUoTH1s=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:QCy1fGB/SH/VLtenMz672IMkmkU= sha1:XRVAkGEkCh89ApKXAeHt9xmxeLo= X-BSB-Auth: 1.5b8c499777fee4888e64.20240324012817GMT.87wmpsh0zy.fsf@bsb.me.uk Bytes: 2341 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. -- Ben.