Article View: comp.lang.c
Article #2220Re: Iterators over slices and views and ranges analogs in C
From: Ross Finlayson
Date: Sat, 05 Dec 2026 00:27
Date: Sat, 05 Dec 2026 00:27
46 lines
3498 bytes
3498 bytes
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. 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.
Technical Details
Message-ID:
<EVidnbIAl4o3x472nZ2dnZfqn_adnZ2d@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-3.nntp.ord.giganews.com!nntp.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>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-3.nntp.ord.giganews.com!nntp.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 00:28:26 +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> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Fri, 4 Dec 2026 16:27:51 -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: <11evglo$241mc$1@kst.eternal-september.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <EVidnbIAl4o3x472nZ2dnZfqn_adnZ2d@giganews.com> Lines: 46 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-CFgFDH9Gw2VHjrkIyhyqL/n4vg4P7GTVrCikrfdrjDRUdDtL2EMQzurz6clIAPYzsJFy5GwUdzl3HxC!imRBERnzOd2mih72vkxdgIAO6KHEBKskO9GO1/jiGDR9JkliPqBu7icKNpokhx9+677NIhTgIh9n!lw== 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