Article View: muc.lists.netbsd.tech.kern
Article #51Re: Do all -current compilers support C23 typed enum syntax?
From: Thor Lancelot Simon
Date: Fri, 04 Dec 2026 05:24
Date: Fri, 04 Dec 2026 05:24
18 lines
2646 bytes
2646 bytes
On Thu, Dec 03, 2026 at 08:31:18PM -0800, Chris Hanson wrote: > > In general, this is not a fruitful line of discussion: Compilers do exist to serve their users, but those users have many different and competing needs, and optimization for both speed and size are among them. And the language specification is ultimately what defines ???broken??? when it comes to how to best meet those needs. I have been avoiding so far in this conversation noting that really, this all stems from Apple buying itself a 50 gallon drum of trouble by just begging for UB by using "enum" in ABI elements, but, this seems like the time to say it. You have to understand the limitations of the language you're working in -- or, if you have a polyglot ecosystem, the languages. Using enum in a binary interface to other people's code bespeaks profound misunderstanding of the limitations of C and papering over it afterwards is bound to be fraught. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<axJOpU_bzJC_LUSU@panix.com>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<1E9B10E3-8385-4900-89ED-F07C6681A464@eschatologist.net> <>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Thor Lancelot Simon <tls@panix.com> Newsgroups: muc.lists.netbsd.tech.kern Subject: Re: Do all -current compilers support C23 typed enum syntax? Date: Fri, 4 Dec 2026 00:24:53 -0500 Organization: Newsgate at muc.de e.V. Sender: tech-kern-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <axJOpU_bzJC_LUSU@panix.com> References: <1E9B10E3-8385-4900-89ED-F07C6681A464@eschatologist.net> <> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="89306"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=panix.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1796361894; bh=jYpSCyJCloIKM9G9IzAKGkLkxY12FzkRa+diYKJuZnc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Wouy0Lb1QmsHtrBQ8yKSoPSLdjuGfRqV59P624zD/eXlgVoL0C72P0O9L5U0ZibqE 2ne1BTx/UL330QaLvdAy5ooUicP0lqFKmubxhcsd2CfCBfrDcH9uLrMRkMaP6WcZZ5 KCDzK3EOYfUFTkLJN72DYaTLluX6BVaMTMprXKts= Content-Disposition: inline In-Reply-To: <1E9B10E3-8385-4900-89ED-F07C6681A464@eschatologist.net> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes