🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.kern
Article #31

Re: Do all -current compilers support C23 typed enum syntax?

#31
From: Greg Troxel
Date: Thu, 03 Dec 2026 12:20
15 lines
2309 bytes
Chris Hanson <cmhanson@eschatologist.net> writes:

> I’m designing a subsystem (including system calls) and I’d like to use “typed enums” in the API rather than #define or anonymous enums and int parameters.

Would this mean that programs that either
  use your API
  include a header where this is defined

could only be compiled with a compiler in --std=c23 mode?

--
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: <rmiik1amu7w.fsf@s1.lexort.com>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <FDE08146-A944-4663-80AF-A6953560BF9D@eschatologist.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Greg Troxel <gdt@lexort.com>
Newsgroups: muc.lists.netbsd.tech.kern
Subject: Re: Do all -current compilers support C23 typed enum syntax?
Date: Thu, 03 Dec 2026 07:20:19 -0500
Organization: Newsgate at muc.de e.V.
Sender: tech-kern-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <rmiik1amu7w.fsf@s1.lexort.com>
References: <FDE08146-A944-4663-80AF-A6953560BF9D@eschatologist.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="94406"; mail-complaints-to="news-admin@muc.de"
User-Agent: Gnus/5.13 (Gnus v5.13)
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (1024-bit key) header.d=lexort.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail;
	t=1796300419; bh=QWyX+mrYs3wFePb1gHcFaL8CAif3+w669NEWh2+fWu0=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=ge3z8zmf/kDsuu6yjC06RPWCPLhMs6rnQEgqmco1ZBPTrlmpoMT3nPi4sd9KOCRBI
	 +g4OUpvkva320ev/gXt76hvVtSLWsWHlZMORcQggpssTZ90qWRbhKNlf9CiF2ZOwD5
	 YLg5Ww5/oxK5KYp5yEXFqUVN4XaYl8PeaZrOJWic=
In-Reply-To: <FDE08146-A944-4663-80AF-A6953560BF9D@eschatologist.net> (Chris
	Hanson's message of "Wed, 2 Dec 2026 23:36:21 -0800")
OpenPGP: id=098ED60E
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes