Article View: comp.lang.c
Article #2247Re: Iterators over slices and views and ranges analogs in C
From: Ross Finlayson
Date: Sat, 05 Dec 2026 12:32
Date: Sat, 05 Dec 2026 12:32
71 lines
4789 bytes
4789 bytes
On 12/04/2026 05:22 PM, Keith Thompson wrote: > Ross Finlayson <ross.a.finlayson@gmail.com> writes: >> On 12/04/2026 03:00 PM, Keith Thompson wrote: >>> Ross Finlayson <ross.a.finlayson@gmail.com> writes: >>>> On 12/04/2026 08:33 AM, David Brown wrote: >>>>> On 04/12/2026 16:21, Ross Finlayson wrote: >>> [...] >>>>>> There's _Generic which some say is C99 >>>>> >>>>> Nobody says that _Generic is in C99. It was added to C in C11. >>> >>> [...] >>> >>>> Thanks for writing. The _Generic construct was implemented for quite >>>> a while before C11, yes that it's in C11. >>> >>> Implemented by whom? When? In what release? >>> >>> I would greatly appreciate a *brief* answer to these questions. >>> I expect your reply will include lengthy digressions, but please >>> include one short sentence or paragraph that clearly and directly >>> answers the questions I just asked. >>> >>> I just took a look at gcc's git history. The _Generic keyword did >>> not exist before commit 433cc7b037f, 2013-07-23. The first release >>> with that change was 4.9.0, released 2014-04-22. >>> >>> llvm/clang introduced _Generic in release 3.0.0, late 2011. >>> >>> There are of course compilers other than gcc and clang, but it >>> certainly doesn't appear to be the case that _Generic was widely >>> implemented before the C11 standard was published. >> >> Let's get it right and move on. >> >> It's not like I can blame a bot or scuttlebutt for >> something I didn't verify myself. > > It sounds like you're admitting that you were wrong, but you haven't > quite said so. > > You claimed that "The _Generic construct was implemented for quite a > while before C11". Are you now acknowledging that that was incorrect? > If so, what made you think that was the case? Was it just a guess? > >> Thanks for helping sort out when _Generic and __auto_type are in effect, >> and about for example that cv-qualified types are distinct, >> or as under what conditions, and for example about >> array-decay-to-pointer and not decaying under a pointer. > > I don't believe I've mentioned any of that in this thread. > That's what we've been talking about, is C and these accounts of genericity in C. It's so that I picked up that mistaken impression from a sprawling bot-chat about these things last week, and, relayed it, so, my fault, since in talking about these things with the bot, involves figuring out conformance, of a language profile. So, if these sorts of things have been about "genericity in C", then this "iterators over slices and views and ranges: analogs in C", is about typed genericity and the usual idea of specialization, using mathematical induction and deduction about type.
Technical Details
Message-ID:
<fZGdncHCRsEfmYn2nZ2dnZfqn_SdnZ2d@giganews.com>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<-kGdnSzB4bWEM4z2nZ2dnZfqn_WdnZ2d@giganews.com> <11esd12$mfam$1@raubtier-asyl.eternal-september.org> <11et39b$rj55$1@news.xmission.com> <11ett3b$1a41p$1@dont-email.me> <11euadh$1gp4t$1@dont-email.me> <11euckd$1ht9i$1@raubtier-asyl.eternal-september.org> <11eugtg$erg$4@dont-email.me> <11euj8b$1lhf1$1@dont-email.me> <i5-dnSCmSLz7R4_2nZ2dnZfqnPqdnZ2d@giganews.com> <11eupvu$1p0q1$1@dont-email.me> <0HydndKd_6bFbY_2nZ2dnZfqn_GdnZ2d@giganews.com> <11evglo$241mc$1@kst.eternal-september.org> <EVidnbIAl4o3x472nZ2dnZfqn_adnZ2d@giganews.com> <11evp1b$28s34$1@kst.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 05 Dec 2026 12:33:06 +0000 Subject: Re: Iterators over slices and views and ranges analogs in C Newsgroups: comp.lang.c References: <-kGdnSzB4bWEM4z2nZ2dnZfqn_WdnZ2d@giganews.com> <11esd12$mfam$1@raubtier-asyl.eternal-september.org> <11et39b$rj55$1@news.xmission.com> <11ett3b$1a41p$1@dont-email.me> <11euadh$1gp4t$1@dont-email.me> <11euckd$1ht9i$1@raubtier-asyl.eternal-september.org> <11eugtg$erg$4@dont-email.me> <11euj8b$1lhf1$1@dont-email.me> <i5-dnSCmSLz7R4_2nZ2dnZfqnPqdnZ2d@giganews.com> <11eupvu$1p0q1$1@dont-email.me> <0HydndKd_6bFbY_2nZ2dnZfqn_GdnZ2d@giganews.com> <11evglo$241mc$1@kst.eternal-september.org> <EVidnbIAl4o3x472nZ2dnZfqn_adnZ2d@giganews.com> <11evp1b$28s34$1@kst.eternal-september.org> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Sat, 5 Dec 2026 04:32:42 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <11evp1b$28s34$1@kst.eternal-september.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <fZGdncHCRsEfmYn2nZ2dnZfqn_SdnZ2d@giganews.com> Lines: 71 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-HRfyxfEgCNv9PXfUHV0QtaUAe6NZQ/Q1TUvEHC5cEpC4/zhMwri9veXzjPLcm5+t9VZH/4pfameI+fB!wgNfMuhMxOxWM9dz0FFtocq29goV3+n8bU0HvbulMeoFwUBze6PsQoVLGLHPwsDtAUSIBhxlxkqJ!Fw== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40